Skip to content

Commit fc805ae

Browse files
committed
refactor: remove WebpackStaticImagesPlugin and its configuration
- Deleted WebpackStaticImagesPlugin to streamline image processing. - Removed related configuration from plugins.js, eliminating the static image processing setup. - This change simplifies the build process by relying on existing image handling methods.
1 parent 0a61e3b commit fc805ae

2 files changed

Lines changed: 0 additions & 169 deletions

File tree

config/plugins.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl
1414
const WebpackImageSizesPlugin = require('./webpack-image-sizes-plugin')
1515
const WebpackThemeJsonPlugin = require('./webpack-theme-json-plugin')
1616
const SpriteHashPlugin = require('./webpack-sprite-hash-plugin')
17-
const WebpackStaticImagesPlugin = require('./webpack-static-images-plugin')
1817

1918
module.exports = {
2019
get: function (mode) {
@@ -55,12 +54,6 @@ module.exports = {
5554
defaultImageFormat: 'webp', // Generated image format (jpg, png, webp, avif)
5655
silence: true, // Suppress console output
5756
}),
58-
new WebpackStaticImagesPlugin({
59-
inputDir: 'src/img/static',
60-
outputDir: 'dist/images',
61-
quality: 80,
62-
silence: false, // Suppress console output
63-
}),
6457
]
6558

6659
if (mode === 'production') {

config/webpack-static-images-plugin.js

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)