fis3-postprocessor-posthtml-beautify
v3.1.0
Published
a html formatter of fis3 based on posthtml-beautify.
Downloads
16
Maintainers
Readme
fis3-postprocessor-posthtml-beautify
a html formatter of fis3 based on posthtml-beautify.
install
npm install --global fis3-postprocessor-posthtml-beautify
usage
// fis-conf.js
var config = {
rules: {
Indent: 2,
eol: '\n',
eof: '\n',
},
}
fis.match('*.html', {
postprocessor: fis.plugin('posthtml-beautify', config),
})
more rules: https://github.com/gitscrum/posthtml-beautify
default options
{
"rules": {
"indent": 2,
"eol": "\n",
"eof": "\n"
}
}
NOTICE: this might change in future
links
fis3: http://fis.baidu.com/
posthtml-beautify: https://github.com/gitscrum/posthtml-beautify
license
MIT © fisker Cheung