wepy-plugin-minify
v1.0.1
Published
minify code plugin for Wepy
Downloads
13
Readme
@wepy/plugin-minify plugin
install
npm install wepy-plugin-minify --save-devwepy.config.js
const WepyPluginMinify = require('wepy-plugin-minify');
module.exports = {
plugins: [
// 不传 options默认开启
WepyMinifyPlugin({ enable: true })
],
};options
你提供的配置选项 options 的 enable 字段 用于配置否关闭压缩功能。默认为开启。
提供在控制台查看压缩详情
内部默认配置如下:
const options = {
enabled: true,
wxml: true,
wxss: false,
js: true,
json: true,
compress: {
drop_console: true,
drop_debugger: true
},
};