diff --git a/package.json b/package.json index d3031a9..c3b7a29 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,6 @@ "file-loader": "^5.1.0", "html-webpack-inline-source-plugin": "0.0.10", "html-webpack-plugin": "^3.2.0", - "image-webpack-loader": "^6.0.0", "mini-css-extract-plugin": "^0.9.0", "optimize-css-assets-webpack-plugin": "^5.0.3", "postcss-loader": "^3.0.0", diff --git a/src/static/media/forex.gif b/src/static/media/forex.gif deleted file mode 100644 index fada1de..0000000 Binary files a/src/static/media/forex.gif and /dev/null differ diff --git a/webpack.config.js b/webpack.config.js index 0f4033b..49d98f9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -60,14 +60,16 @@ module.exports = (env, argv) => ({ loader: 'responsive-loader', options: { adapter: Sharp, - name: '[contenthash]-[width].[ext]', + name: '[contenthash].[ext]', outputPath: 'static/', sizes: [200, 400, 800, 1200, 1600, 2000], + quality: 0.9, format: 'webp', + progressive: true, }, }, { - test: /\.(webm|mp4|gif)$/i, + test: /\.(webm|mp4)$/i, use: [ { loader: 'file-loader', @@ -76,29 +78,6 @@ module.exports = (env, argv) => ({ name: '[contenthash].[ext]', }, }, - { - loader: 'image-webpack-loader', - options: { - disable: argv.mode === 'development', - mozjpeg: { - progressive: true, - quality: 65, - }, - optipng: { - enabled: true, - }, - pngquant: { - quality: [0.65, 0.9], - speed: 4, - }, - gifsicle: { - interlaced: false, - }, - webp: { - quality: 65, - }, - }, - }, ], }, {