fis3-preprocessor-html2js

0.1.1 • Public • Published

fis3-preprocessor-html2js

Dependency Status devDependency Status NPM Version

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 default false

  • wrap - string current support commonjs and amd, by default using amd

Readme

Keywords

Package Sidebar

Install

npm i fis3-preprocessor-html2js

Weekly Downloads

1

Version

0.1.1

License

ISC

Last publish

Collaborators

  • wuhuiyao