We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d05ba89 commit a4e0bb0Copy full SHA for a4e0bb0
README.md
@@ -15,7 +15,7 @@ const mpvueVendorPlugin = require('webpack-mpvue-vendor-plugin')
15
},
16
plugins: [
17
new mpvueVendorPlugin({
18
- platform: process.argv
+ platform: process.env.PLATFORM
19
})
20
]
21
};
index.js
@@ -22,7 +22,7 @@ function mpvueVendorPlugin(options) {
22
}
23
24
mpvueVendorPlugin.prototype.apply = function(compiler) {
25
- const isAlipay = this.options.platform && this.options.platform.includes('my');
+ const isAlipay = this.options.platform && this.options.platform === 'my';
26
if (isAlipay) {
27
compiler.plugin("emit", (compilation, callback) => {
28
const regExp = /\.js$/;
0 commit comments