Browse Source

fix: image loader for webpack 5

pull/204/head
sualko 11 months ago
parent
commit
ff91186b42
  1. 7
      webpack.common.js

7
webpack.common.js

@ -59,10 +59,9 @@ module.exports = {
},
{
test: /\.(png|jpg|gif|svg)$/,
loader: 'url-loader',
options: {
name: '[name].[ext]?[hash]',
limit: 8192,
type: 'asset',
generator: {
filename: 'static/[name][ext]?[hash]',
},
},
],

Loading…
Cancel
Save