ccp-eva / matt

⛵️ Moral Attitudes Study
MIT License
0 stars 0 forks source link

Consider using SVGO without webpack #51

Open kalaschnik opened 1 year ago

kalaschnik commented 1 year ago

Since we only have a single SVG, which encapsulates the entire procedure, and svgo-loader is separate project from svgo, it make be wise to switch the the more active svgo and do the preprocessing right before npm start and npm run build...

For example

"svgo": "svgo ...",
"start": "npm run svgo && webpack serve",
kalaschnik commented 1 year ago

Update, since I massively rely on object reuse (see #51 and Readme)... SVGO is may not be as efftive anymore... Thus consider to use extend a "svgo" script to iterative over the entire assets folder to optimize all SVG files in that folder. After that npm start or npm run build should kick in