-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: π‘ change config key from 'svgoOptions' to 'svgo' (#36)
* refactor: π‘ change nuxt config key from 'svgoOptions' to 'svgo' BREAKING CHANGE: 𧨠Nuxt config key is now 'svgo', instead of 'svgoOptions' * chore: π€ changeset * chore: π€ update playground to use new 'svgo' config key * fix: π use svgo-loader to run svgo with options with webpack As discussed in damianstasik/vue-svg-loader#156, 'vue-svg-loader' uses svgo v1. That project looks to be unmaintained, with the latest beta release more than 2 years old. This PR disables the svgo functionality of vue-svg-loader, instead relying on svg/svgo-loader to perform optimizations, essentially making vue-svg-loader wrap the svg content in template tags. β Closes: #37 * docs: βοΈ update README with webpack-based tooling info * docs(changeset): fix webpack SVG optimization with svgo-loader
- Loading branch information
Showing
7 changed files
with
108 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'nuxt-svgo': major | ||
--- | ||
|
||
Change Nuxt config key from 'svgoOptions' to 'svgo'. If you were using customized SVGO options, you'll need to update your `nuxt.config.ts` file to use `svgo` as the options key rather than `svgoOptions`. If you were using the default SVGO options, no change is necessary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'nuxt-svgo': minor | ||
--- | ||
|
||
fix webpack SVG optimization with svgo-loader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.