0.1.1 • Published 9 years ago
fis3-preprocessor-html2js v0.1.1
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 -gAdd configure to fis-conf.js
fis.match('/src/*.tpl', {
preprocessor: fis.plugin('html2js', {
format: false
}),
useHash: true,
release: '/asset/$1.tpl',
rExt: '.js'
});Options
format -
booleanwhether format the html js module, by defaultfalsewrap -
stringcurrent supportcommonjsandamd, by default usingamd