0.1.1 • Published 7 years ago

fis3-preprocessor-html2js v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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

0.1.1

7 years ago

0.1.0

8 years ago