fis-optimizer-htmlformat

1.0.1 • Public • Published

fis-optimizer-htmlformat

Replace require path for packager file.

use

npm install --save fis-optimizer-htmlformat

settings

fis.match('*.html', {
    optimizer: fis.plugin('htmlformat', {
        "ignore": ["a.html","b.html"] //不参与format
        "indent_size": 4,
        "indent_char": " ",
        "eol": "\n",
        "indent_level": 0,
        "indent_with_tabs": false,
        "preserve_newlines": true,
        "max_preserve_newlines": 10,
        "jslint_happy": false,
        "space_after_anon_function": false,
        "brace_style": "collapse",
        "keep_array_indentation": false,
        "keep_function_indentation": false,
        "space_before_conditional": true,
        "break_chained_methods": false,
        "eval_code": false,
        "unescape_strings": false,
        "wrap_line_length": 0,
        "wrap_attributes": "auto",
        "wrap_attributes_indent_size": 4,
        "end_with_newline": false
    })
});
 

Package Sidebar

Install

npm i fis-optimizer-htmlformat

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dw_wangchao1