upgrade to webpack5 (#3871)

Upgrade to webpack 5
Changes dependencies to work with webpack 5 as well.
This commit is contained in:
Nikhil
2021-05-27 15:16:03 -07:00
committed by GitHub
parent c90dfb2a1f
commit e1e0eeac56
7 changed files with 8650 additions and 29 deletions

View File

@ -64,21 +64,27 @@ const webpackConfig = {
filename: '[name].css',
chunkFilename: '[name].css'
}),
new CopyWebpackPlugin([
{
from: 'src/images/favicons',
to: 'favicons'
},
{
from: './index.html',
transform: function (content) {
return content.toString().replace(/dist\//g, '');
new CopyWebpackPlugin({
patterns: [
{
from: 'src/images/favicons',
to: 'favicons'
},
{
from: './index.html',
transform: function (content) {
return content.toString().replace(/dist\//g, '');
}
}
}
])
]
})
],
module: {
rules: [
{
test: /\.vue$/,
use: 'vue-loader'
},
{
test: /\.(sc|sa|c)ss$/,
use: [
@ -118,17 +124,14 @@ const webpackConfig = {
}
}
},
{
test: /\.vue$/,
use: 'vue-loader'
}
]
},
ignoreWarnings: [/asset size limit/g],
stats: {
modules: false,
timings: true,
colors: true,
warningsFilter: /asset size limit/g
colors: true
}
};