html-reset
v1.0.5
Published
编译单个html文件
Downloads
9
Readme
处理单个html,重新编译html的css 和 js。给css添加前缀,转换js语法
使用
npm install html-reset --save
const HtmlReset = require('html-reset')
new HtmlReset({ entry:'./index.html' }).run()
.babelrc
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": {
"version": 3
},
"targets": {
"browsers": [
"> 1%",
"last 2 versions",
]
}
}
]
]
}
.browserslistrc
> 1%
last 2 versions