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 |
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
}
},
}
};
配置参数为processOptions及plugins
使用cssnano
插件压缩css时,由于其依赖macaddress
存在全局变量泄露问题,将导致无法完成编译过程。
问题相关:Github