Skip to content

Commit

Permalink
refactor(webpack-config): removed img-loader and changed order of ima…
Browse files Browse the repository at this point in the history
…ge loaders
  • Loading branch information
Eric Hayes committed Dec 14, 2020
1 parent 4ae1f5c commit 48966af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/webpack/config/dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,19 @@ module.exports = merge([
test: /\.(png|svg|jpg|gif)$/,
exclude: config.get('commonExcludes'),
use: [
{loader: 'file-loader', options: {name: '[name].[ext]'}},
{loader: 'img-loader'},
{
loader: 'url-loader',
options: {
limit: false,
name: '[name].[ext]',
},
},
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
},
},
],
},
],
Expand Down

0 comments on commit 48966af

Please sign in to comment.