Awesome
wepy框架parsecss插件
install
npm i -D wepy-plugin-parsecss
wepy.config.js
plugins: {
parsecss: {
compressed: false,
// base64
base64Config: {
maxSize: 20,
basePath: __dirname + '/bgimages'
},
// autoprefixer
autoprefixerConfig: {
browsers: ['last 11 iOS versions']
}
}
},
base64 params
-
basePath -- path to put bg-images -- path to search assets
-
maxSize -- file size in kbytes