1.1.2 • Published 7 years ago

sp-mini v1.1.2

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

压缩css, js, html内js,css

配置如下:

 {
    "ignore": [
      "(\\.min\\.js)$",
      "(\\.min\\.css)$"
    ],
    "js": {},
    "css": {},
    "html": {
      "js": true,
      "css": true
    }
}

ignore 忽略文件

符合正则表达式的string数组。

js

default: {}, 压缩选项,参考: https://github.com/mishoo/UglifyJS2

如果不要压缩请设置为false

css

default: {}, 压缩选项, 参考:https://github.com/jakubpawlowicz/clean-css

如果不要压缩请设置为false

html

default: {js: true, css: true}. 如果 需要压缩html内js 设置为true, 压缩选项 共用 上面js的设置。 如果不需要压缩js,则设置为false。 html内css同上。

禁用两者,设置值为false,{html: false}

1.1.2

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago