Material-Math icon indicating copy to clipboard operation
Material-Math copied to clipboard

🛠️ Refactor: use vue-svg-loader for all SVG icons

Open dlqqq opened this issue 4 years ago • 0 comments

Motivation 🏁

vue-svg-loader is currently being introduced in PR #83. It treats all SVG files as Vue components, and calls svgo in the build step to optimize all SVGs, greatly improving load times. This means cleaner code (no more disgusting 10-line long SVGs in the middle of Vue components) and faster load times for the end-user.

Describe your refactoring solution 🛠️

  • identify all SVG assets used (e.g. difficulty icons in #83, donation icons in #79)
  • replace them all with separate SVG files and use vue-svg-loader in all component files

dlqqq avatar Nov 05 '20 21:11 dlqqq