##Plugins
-
explanation:config parser plugins
-
type:
Object
-
default:empty
-
usage:
//fis-conf.js fis.config.merge({ modules : { parser : { //coffee suffix file using fis-parser-coffee-script compiler plugin coffee : 'coffee-script', //less suffix file using fis-parser-less compiler plugin //the processor supports an array, or a comma-delimited string configuration less : ['less'], //md suffix file using fis-parser-marked compiler plugin md : 'marked' } }, roadmap : { ext : { //convert less suffix to css suffix less : 'css', //convert coffee suffix to js coffee : 'js', //convert md suffix to html md : 'html' } } });
-
explanation:config preprocessor plugins
-
type:
Object
-
default:empty
-
usage:
fis.config.set('modules.preprocessor.css', 'image-set');
or
//fis-conf.js fis.config.merge({ modules : { preprocessor : { //css file will be compiled by fis-preprocessor-image-se plugin css : 'image-set' } } });
- explanation:config postprocessor plugins
- type:
Object
- default:
{ js : 'jswrapper' }
- usage:like modules.preprocessor
-
explanation:lint plugin
-
type:
Object
-
default:empty
-
usage:
fis.config.set('modules.lint.js', 'jshint');
or
//fis-conf.js fis.config.merge({ modules : { lint : { //js files will be linted by fis-lint-jshint plugin js : 'jshint' } } });
-
explanation:test plugin
-
type:
Object
-
default:empty
-
usage:
fis.config.set('modules.test.js', 'phantomjs');
or
//fis-conf.js fis.config.merge({ modules : { test : { //js files will by tested by fis-test-phantomjs plugin js : 'phantomjs' } } });
-
explanation:minification
-
type:
Object
-
default:
{ js : 'uglify-js', css : 'clean-css', png : 'png-compressor' }
-
usage:
fis.config.set('modules.optimizer.js', 'uglify-js');
or
//fis-conf.js fis.config.merge({ modules : { optimizer : { //js files will by minified by fis-optimizer-uglify-js js : 'uglify-js' } } });
-
explanation:pre-packager plugin
-
type:
Array
|string
-
default:empty
-
usage:
fis.config.set('modules.prepackager', 'oo, xx');
or
//fis-conf.js fis.config.merge({ modules : { prepackager : 'oo, xx' } });
-
explanation:packager plugin
-
type:
Array
|string
-
default:'map'
-
usage:
fis.config.set('modules.packager', 'your_packager');
or
//fis-conf.js fis.config.merge({ modules : { packager : 'your_packager' } });
-
explanation:csssprite plugin。
-
type:
Array
|string
-
default:'csssprites'
-
usage:
fis.config.set('modules.spriter', 'your_spriter');
or
//fis-conf.js fis.config.merge({ modules : { spriter : 'your_spriter' } });
-
explanation:post-packager plugin
-
type:
Array
|string
-
default:empty
-
usage:
fis.config.set('modules.postpackager', 'your_postpackager');
or
//fis-conf.js fis.config.merge({ modules : { postpackager : 'your_postpackager' } });