Skip to content

Commit

Permalink
Unbundle gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansg44 committed Sep 6, 2024
1 parent 4925e6a commit 14d1ad5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = (env, argv) => {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'scripts/[name].js',
assetModuleFilename: 'assets/[hash][ext][query]',
},
plugins: [
new HtmlWebpackPlugin({
Expand Down Expand Up @@ -52,6 +51,12 @@ module.exports = (env, argv) => {
{
test: /\.(png|svg|jpg|jpeg|gif)$/i,
type: 'asset/resource',
generator: {
// Will throw a file not found error if ``dist`` folder not in
// ``{project root}/web/``.
filename: '../[file]',
emit: false,
}
},
],
},
Expand Down

0 comments on commit 14d1ad5

Please sign in to comment.