0.0.4 • Published 3 years ago

remove-wx-plugin v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago