fis3-preprocessor-html2js
A preprocessor for fis3 to convert html file to amd/commonjs wrapping js file.
How to use
Install
npm install fis3-preprocessor-html2js -g
fis-conf.js
Add configure to fis.match('/src/*.tpl', {
preprocessor: fis.plugin('html2js', {
format: false
}),
useHash: true,
release: '/asset/$1.tpl',
rExt: '.js'
});
Options
-
format -
boolean
whether format the html js module, by defaultfalse
-
wrap -
string
current supportcommonjs
andamd
, by default usingamd