Skip to content

Commit 92ad507

Browse files
committed
add mix v6 support
1 parent 42adda7 commit 92ad507

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Next require the extension inside your Laravel Mix config and call `svgVue()` in
2828
const mix = require('laravel-mix');
2929
require('laravel-mix-svg-vue');
3030

31+
// add .vue() to the pipeline if you are using mix v6
3132
mix.js('resources/js/app.js', 'public/js')
3233
.svgVue();
3334
```
@@ -132,3 +133,7 @@ Rendering lists could be handled like this:
132133
```
133134

134135
Just remember the `key` has to be unique. More examples for this can be found in the Vue documentation.
136+
137+
When toggling between elements that have the same tag name, you must tell Vue that they are distinct elements by giving them unique key attributes. Otherwise, Vue’s compiler will only replace the content of the element for efficiency. Even when technically unnecessary though, it’s considered good practice to always key multiple items within a component.
138+
139+
https://stackoverflow.com/questions/42019828/smoothly-animate-v-show-in-vuejs

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "laravel-mix-svg-vue",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "A Laravel Mix extension to inline SVG files with Vue.js and automatically optimize them with SVGO",
55
"main": "index.js",
66
"files": [
@@ -28,15 +28,15 @@
2828
},
2929
"homepage": "https://github.com/danielstgt/laravel-mix-svg-vue",
3030
"peerDependencies": {
31-
"laravel-mix": "^4.0.15 || ^5.0.0"
31+
"laravel-mix": "^4.0.15 || ^5.0.0 || ^6.0.0"
3232
},
3333
"dependencies": {
3434
"fs": "0.0.1-security",
3535
"imagemin": "^6.1.0",
3636
"imagemin-svgo": "^7.0.0",
3737
"img-loader": "^3.0.1",
38+
"path": "^0.12.7",
3839
"raw-loader": "^4.0.0",
39-
"svg-vue": "^0.1.1",
40-
"webpack": "^4.41.3"
40+
"svg-vue": "^0.1.1"
4141
}
4242
}

0 commit comments

Comments
 (0)