Home

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

autoprefixer params

https://github.com/postcss/autoprefixer#options