Wepy-plugin-compressor
An easily-to-be-used compressor plugin for wepy 2.
Install
npm install wepy-plugin-compressor --save-dev
How to use
/* wepy.config.js */ // import the pluginconst WepyPluginCompressor = ; // config to overwrite the default plugin settingsconst options = enabled: true ; // add the pluginmoduleexports = plugins: ;
Default settings
const options = // by default the compression is disabled enabled: false wxml: true json: true // by default the wxss compression is disabled wxss: false // the engine under the hook is terser // which would automatically transpile the ES6 into ES5 js: true;