chore: update copy-webpack-plugin config

This commit is contained in:
DIYgod 2020-05-29 17:43:01 +08:00
parent bffcad63db
commit 0e4a2a0706
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 8 additions and 7 deletions

View File

@ -160,13 +160,14 @@ module.exports = {
new MiniCssExtractPlugin({
filename: '[name].css'
}),
new CopyPlugin([
{
from: 'src/assets',
to: '',
copyUnmodified: true,
},
]),
new CopyPlugin({
patterns: [
{
from: 'src/assets',
to: '',
},
],
}),
new VueLoaderPlugin(),
new webpack.DefinePlugin({
VERSION: JSON.stringify(require('./src/assets/manifest.json').version)