fisx-preprocessor-amd
v0.1.4
Published
A preprocessor for fisx to wrap commonjs module using amd style
Downloads
3
Readme
fisx-preprocessor-amd
A preprocessor to wrap module code using amd style.
How to use
Install
npm install fisx-preprocessor-amd --save-dev
Add configure to fis-conf.js
fis.match('/src/**.js', {
preprocessor: fis.plugin('amd')
});
Options
disableWrap -
boolean
optional
: if the processed file has disableWrap configure withtrue
, the preprocessor will ignore this fileclearCssRequire -
boolean
optional
: whether remove the css file require declaration, by default false