wepy-plugin-minify

1.0.0 • Public • Published

@wepy/plugin-minify 插件

安装

npm install wepy-plugin-minify --save-dev

配置wepy.config.js

const WepyPluginMinify = require('wepy-plugin-minify');

module.exports = {
  plugins: [
    // 不传 options默认开启
    WepyMinifyPlugin({ enable: true })
  ],
};

参数说明

你提供的配置选项 options 的 enable 字段 用于配置否关闭压缩功能。默认为开启

内部默认配置如下:

const options = {
  enabled: false,
  wxml: true,
  wxss: false,
  js: true,
  json: true,
  compress: {
    drop_console: true,
    drop_debugger: true
  },
};

Readme

Keywords

Package Sidebar

Install

npm i wepy-plugin-minify

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.94 kB

Total Files

4

Last publish

Collaborators

  • mikasayw