Revert "upgrade to webpack5 (#3871)" (#3907)

This reverts commit e1e0eeac56.
This commit is contained in:
Nikhil
2021-06-02 07:04:40 -07:00
committed by GitHub
parent dbed9262c0
commit a40867d544
7 changed files with 29 additions and 8650 deletions

View File

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