wepy-compiler-postcss2
v1.0.3
Published
a wepy compiler
Downloads
3
Readme
wepy postcss 编译器
Based on wepy-compiler-postcss for rewrite, add support syntax
for process, and update postcss to latest.
安装
npm install wepy-compiler-postcss2 --save-dev
配置 wepy.config.js
,以使用 cssnext
为例
const cssnext = require('cssnext);
module.exports = {
"compilers": {
postcss: {
plugins: [
cssnext({
browsers:['iOS 9', 'Android 4.4']
})
]
},
}
};
参数说明
已知Bug
使用cssnano
插件压缩css时,由于其依赖macaddress
存在全局变量泄露问题,将导致无法完成编译过程。
问题相关:Github
如果你有相关解决办法请联系我 [email protected]