Skip to content

Commit

Permalink
Update webpack.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
smarteist authored Feb 27, 2022
1 parent bc56051 commit af98cfe
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,29 +105,10 @@ module.exports = function (env, args) {
},
{
test: /\.(png|svg|jpe?g|gif)$/,
type: 'asset/resource',
generator: {
filename: 'images/[hash][ext]',
},
use: [
{
loader: 'file-loader',
options: {
name: "[name].[ext]",
outputPath: "images",
esModule: false,
},
},
{
loader: 'image-webpack-loader',
options: {
disable: (args.mode !== 'production'), // Disable during development
mozjpeg: {
progressive: true,
quality: 75
},
},
}
],
},
{
test: /(favicon\.ico|site\.webmanifest|browserconfig\.xml|robots\.txt|humans\.txt)$/,
Expand Down

0 comments on commit af98cfe

Please sign in to comment.