Skip to content

Commit

Permalink
simplified webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Jun 14, 2024
1 parent 502437f commit 4fac3a4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,20 @@ module.exports = {
},
// images
{
test: /\.(png|svg|jpe?g|webp|mp4)$/i,
test: /\.(png|svg|jpe?g|webp)$/i,
type: 'asset/resource',
generator: {
filename: 'img/[name].[hash:8][ext]',
},
},
// videos
{
test: /\.(mp4)$/i,
type: 'asset/resource',
generator: {
filename: 'video/[name].[hash:8][ext]',
},
}
],
},
}

0 comments on commit 4fac3a4

Please sign in to comment.