53 |
54 | 1) Create a new file: `plugins/vue-image-upload.js`, and add the following code:
55 | ```js
56 | import Vue from 'vue'
57 | import ImageUploader from 'vue-image-upload-resize'
58 |
59 | Vue.use(ImageUploader)
60 | ```
61 |
62 | 2) In your `nuxt.config.js`, add the [client plugin](https://nuxtjs.org/api/configuration-plugins):
63 |
64 | ```js
65 | export default {
66 | // ... other config
67 | plugins: [
68 | { src: '~/plugins/vue-image-upload.js', mode: 'client' },
69 | ]
70 | }
71 | ```
72 |
73 | 3) When you use the componenent inside a page, make sure to wrap it in `