Closed 01Kuzma closed 3 years ago
Please update plugins firstly, you don't need webpack.LoaderOptionsPlugin
. We have guide how to do it, please follow https://webpack.js.org/migrate/4/ and https://webpack.js.org/migrate/5/
You have two loaders for emit the same assets:
{
test: /\.(ttf|eot|svg)(\?[\s\S]+)?$/,
use: 'file-loader',
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
use: [
'file-loader?name=images/[name].[ext]',
'image-webpack-loader?bypassOnDebug'
]
},
Look at the svg
extension
Thank you! I will try
Hi! I'm trying to start an old project which was based on WebPack v3. The configuration and packages has been updated. I'm getting this error:
"Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): Error: Conflict: Multiple assets emit different content to the same filename images/gb.svg"
mini-css-extract-plugin@1.3.1 webpack 5.4.0
webpack.config.js: module.exports = {
};