Skip to content

Commit

Permalink
fix(assets): fix url loaded assets
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamssg committed Sep 28, 2022
1 parent b932b81 commit 86d8d26
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions webpack/presets/assets.production.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const URL_LOADER_LIMIT = 8192

module.exports = () => ({
module: {
rules: [
Expand All @@ -13,16 +11,7 @@ module.exports = () => ({
},
{
test: /\.(png|jpg|gif)$/,
use: [
{
loader: 'url-loader',
options: {
outputPath: 'images/',
name: '[name].[ext]',
limit: URL_LOADER_LIMIT
}
}
]
type: 'asset'
}
]
}
Expand Down

0 comments on commit 86d8d26

Please sign in to comment.