Skip to content

Commit

Permalink
fix: fix --icon + --no-dimensions
Browse files Browse the repository at this point in the history
This fix incompatible options, "--no-dimensions" will be prioritary.

Fixes #141
  • Loading branch information
gregberge committed Sep 30, 2018
1 parent 45522fc commit 7535693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/plugins/h2x.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function configToPlugins(config) {
if (config.replaceAttrValues)
plugins.push(replaceAttrValues(config.replaceAttrValues))
if (!config.dimensions) plugins.push(removeDimensions())
if (config.icon) plugins.push(emSize())
if (config.icon && config.dimensions) plugins.push(emSize())
if (config.ref) plugins.push(svgRef())
if (config.svgProps) plugins.push(svgProps(config.svgProps))
if (config.expandProps) plugins.push(expandProps(config.expandProps))
Expand Down

0 comments on commit 7535693

Please sign in to comment.