BubbleSci e4ff868659 docs: fix problem 4 years ago
..
test 0ff522c870 style: eslint style fixs part II 5 years ago
CHANGELOG.md d995f52a61 chore(release): publish v2.1.0 4 years ago
README.md e4ff868659 docs: fix problem 4 years ago
index.js 02aa812725 style: eslint auto fix 5 years ago
package-lock.json d995f52a61 chore(release): publish v2.1.0 4 years ago
package.json d995f52a61 chore(release): publish v2.1.0 4 years ago

README.md

wepy postcss 编译器

安装

npm install @wepy/compiler-postcss --save

配置 wepy.config.js ,以使用 cssnext 为例

const cssnext = require('cssnext');

module.exports = {
    "compilers": {
        postcss: {
            plugins: [
                cssnext({
                    browsers:['iOS 9', 'Android 4.4']
                })
            ],
            map: {
                inline: true
            }
        },
    }
};

参数说明

配置参数为processOptionsplugins

已知Bug

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

Contributor

fsy0718