shit
This commit is contained in:
parent
94107ba215
commit
4dccf699aa
@ -109,7 +109,7 @@ const productionPlugins = [
|
||||
}),
|
||||
];
|
||||
|
||||
let plugins = [
|
||||
let plugins = (env, argv) => [
|
||||
new CopyPlugin([{ from: 'data', to: 'data' }, { from: 'wand.js', to: 'wand.js' }]),
|
||||
new HtmlWebpackPlugin({
|
||||
hash: true,
|
||||
@ -171,5 +171,5 @@ module.exports = (env, argv) => ({
|
||||
new TerserPlugin({ terserOptions: jsMin }),
|
||||
],
|
||||
},
|
||||
plugins: [...plugins, ...(argv.mode == 'production' ? productionPlugins : [])],
|
||||
plugins: [...plugins(env, argv), ...(argv.mode == 'production' ? productionPlugins : [])],
|
||||
})
|
Loading…
Reference in New Issue
Block a user