0.0.4 • Published 2 years ago

remove-wx-plugin v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

removeWxPlugin

webpack 插件,可以通过配置去除未使用的wx.xxxx方法

usage

const RemoveWxPlugin = require("remove-wx-plugin");

module.exports = {
  //  webpack ...config
  plugins: [
    new RemoveWxPlugin({
      filterList: [
        "onLocationChange",
        "chooseLocation",
        // ...
      ],
    }),
  ],
};

打包的结果中会去除wx.onLocationChangewx.chooseLocation等配置的方法

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago