vite-plugin-svg-spritegen 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -134,16 +134,20 @@ const svgoDefault = {
134
134
  }
135
135
  }
136
136
  },
137
- "removeDimensions"
137
+ "removeDimensions",
138
+ {
139
+ name: "removeAttrs",
140
+ params: { attrs: "(stroke-width|stroke-linecap|stroke-linejoin|class)" }
141
+ }
138
142
  ]
139
143
  };
140
144
  const inputConfigDefaults = {
141
145
  pattern: "**/*.svg",
142
146
  baseDir: "./",
143
147
  prefix: "",
144
- removeAttrs: ["stroke-width", "stroke-linecap", "stroke-linejoin", "class"],
145
- svgoPlugins: [],
148
+ removeAttrs: [],
146
149
  svgo: svgoDefault,
150
+ svgoPlugins: [],
147
151
  getSymbolId: (config) => config.prefix + config.matchPath.replace(/\.[^/.]+$/, "").replaceAll("/", "-").toLowerCase()
148
152
  };
149
153
  const stripUnusedDefaults = {
package/dist/index.mjs CHANGED
@@ -132,16 +132,20 @@ const svgoDefault = {
132
132
  }
133
133
  }
134
134
  },
135
- "removeDimensions"
135
+ "removeDimensions",
136
+ {
137
+ name: "removeAttrs",
138
+ params: { attrs: "(stroke-width|stroke-linecap|stroke-linejoin|class)" }
139
+ }
136
140
  ]
137
141
  };
138
142
  const inputConfigDefaults = {
139
143
  pattern: "**/*.svg",
140
144
  baseDir: "./",
141
145
  prefix: "",
142
- removeAttrs: ["stroke-width", "stroke-linecap", "stroke-linejoin", "class"],
143
- svgoPlugins: [],
146
+ removeAttrs: [],
144
147
  svgo: svgoDefault,
148
+ svgoPlugins: [],
145
149
  getSymbolId: (config) => config.prefix + config.matchPath.replace(/\.[^/.]+$/, "").replaceAll("/", "-").toLowerCase()
146
150
  };
147
151
  const stripUnusedDefaults = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-svg-spritegen",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Vite plugin that generates an svg spritesheet, optionally removing unused svg files.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",