1.0.3 • Published 7 years ago

wepy-compiler-postcss2 v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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']
                })
            ]
        },
    }
};

参数说明

PostCSS及其常用插件介绍

已知Bug

使用cssnano插件压缩css时,由于其依赖macaddress存在全局变量泄露问题,将导致无法完成编译过程。 问题相关:Github

如果你有相关解决办法请联系我 shoyuf@shoyuf.top