fis3-preprocessor-html2js
v0.1.1
Published
A preprocessor for fis3 to convert html file to amd/commonjs wrapping js file.
Downloads
4
Readme
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
Add 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 -
boolean
whether format the html js module, by defaultfalse
wrap -
string
current supportcommonjs
andamd
, by default usingamd