Suggestion: Leave SVGO out of this package
See original GitHub issueYou can easily add SVGO to the pipeline on Webpack, so leave it out of your package to reduce complexity.
Webpack 2 example:
{
test: /\.svg$/,
loaders: [
'babel-loader',
'react-svg-loader',
{
loader: 'svgo-loader',
options: {
floatPrecision: 2
plugins: [{removeTitle: false}],
}
},
]
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Three Ways of Decreasing SVG File Size with SVGO - SitePoint
In this article I suggest three ways in which SVGO lets you optimize SVG graphics to make them suitable for web use.
Read more >Optimizing SVG for the Web - Web Design Weekly
We'll take a look at a command line tool that can help us clean that up a bit called SVGO. It's a Node...
Read more >npm upgrade and npm audit fix: problems with vulnerabilities ...
As the new version 6.3.0 doesn't have the proper @svgo and @svgr we won't be able to access those modules. So, my suggestion...
Read more >Base64 SVG erros on :production - sage - Roots Discourse
Everything compiles when running yarn build , but after running yarn build:production , I get svgo errors. This only happens when including only ......
Read more >svgo - npm
svgo. TypeScript icon, indicating that this package has built-in type declarations. 3.0.2 • Public • Published a month ago.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just an FYI: I’ve had react-svg-loader blow up because an SVG contained CSS (which contains curly braces which JSX treats specially) so this approach is pretty error prone.
1
,2
(remove comments and doctype) and also fix up invalid XML and3
- is exactly what SVGO already does. Since we already use SVGO, it’d be good and easy just to expose the API.