Skip to content

Commit 409e9e1

Browse files
authored
fix(bundling): add svgo config for icons (#134)
1 parent f692133 commit 409e9e1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.storybook/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ module.exports = (storybookBaseConfig, configType) => {
7575
icon: false,
7676
svgoConfig: {
7777
plugins: [
78+
{ removeAttrs: { attrs: '(stroke|fill)' } },
7879
{ removeViewBox: false },
7980
// Keeps ID's of svgs so they can be targeted with CSS
8081
{ cleanupIDs: false },

rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ const plugins = [
106106
icon: false,
107107
svgoConfig: {
108108
plugins: [
109+
{ removeAttrs: { attrs: '(stroke|fill)' } },
109110
{ removeViewBox: false },
110111
// Keeps ID's of svgs so they can be targeted with CSS
111112
{ cleanupIDs: false },

0 commit comments

Comments
 (0)