Skip to content

Commit 10a8f72

Browse files
committed
nuxt.js config
1 parent 2b629f6 commit 10a8f72

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ export default {
5656
}
5757
}
5858
```
59+
## work in Nuxt.js
60+
config it in nuxt.config.js
61+
62+
```
63+
build: {
64+
vendor: ['vue2-toast'],
65+
extend (config, ctx) {
66+
if (ctx.isClient) {
67+
config.resolve.alias['vue'] = 'vue/dist/vue.js';
68+
}
69+
}
70+
}
71+
```
5972

6073
## options
6174

0 commit comments

Comments
 (0)