remove-wx-plugin
v0.0.4
Published
webpack 插件,可以通过配置去除未使用的`wx.xxxx`方法
Readme
removeWxPlugin
webpack 插件,可以通过配置去除未使用的wx.xxxx方法
usage
const RemoveWxPlugin = require("remove-wx-plugin");
module.exports = {
// webpack ...config
plugins: [
new RemoveWxPlugin({
filterList: [
"onLocationChange",
"chooseLocation",
// ...
],
}),
],
};打包的结果中会去除wx.onLocationChange、wx.chooseLocation等配置的方法
