Parcel 2: SVGO Optimizer
See original GitHub issueCreate the @parcel/optimizer-svgo
package. This should include an Optimizer plugin that compresses SVG images with SVGO.
This plugin should be included in @parcel/config-default
for *.svg
to optimize SVGs by default in production.
Configuration
Optional configuration should be done through a .svgorc
file. We should include good default settings, but it should be possible to override them if needed. See here for a full list of options.
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (17 by maintainers)
Top Results From Across the Web
SVG - Parcel
This uses SVGR to transform the SVG file into JSX. It also uses SVGO to optimize the SVG to reduce file size. This...
Read more >@parcel/optimizer-svgo | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >@parcel/transformer-svgo NPM | npm.io
@parcel/transformer-svgo v2.0.0-nightly.1739. Install. Weekly downloads ... optimizers is an object map of globs to arrays of Parcel optimizer packages.
Read more >parcel-optimizer-imagemin - npm package - Snyk
Parcel optimizer plugin to minify images seamlessly. For more information about how to use this package see README.
Read more >Hah, I literally spent a day trying to use parcel to optimize a ...
on: Parcel 2 Beta 3 – improved build performance ... maybe do some image minification (svgo), compile using the latest sass module features...
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 Free
Top 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
I found a workaround solution. Create a
.parcelrc
file at the root of the project. As contents put the followingThat solved the issue for me. The command to build the project in my case is:
"build": "parcel build *.html --no-cache"
.I can’t seem to get this to work in my project, I’m using
--public-url .
CLI option, could that be making a difference?The error I get is something like:
Looks like it’s relying on a url path, where I need it to start with
./