Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config/svgo.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ module.exports = {
// Plugins that are not in the "preset-default" and that you want to activate
'removeTitle',
'convertStyleToAttrs',
'prefixIds',
],
}
3 changes: 3 additions & 0 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module.exports = {
optimization: {
minimizer: [
new ImageMinimizerPlugin({
// svg-sprite-loader extract publicPath; sprites are already optimized via svgo-loader.
exclude: /(?:^|[/\\])icons[/\\]/i,
minimizer: [
{
implementation: ImageMinimizerPlugin.sharpMinify,
Expand Down Expand Up @@ -44,6 +46,7 @@ module.exports = {
},
{
implementation: ImageMinimizerPlugin.svgoMinify,
filter: (source, sourcePath) => /\.svg$/i.test(sourcePath),
options: {
encodeOptions: {
multipass: true,
Expand Down
Loading