'How to locate Static Images in Nuxtjs
I created an assets folder in my NuxtJs directory and i have img folder inside it with images. Currently i am trying to load images from that directory like this
../../assets/img/register_bg_2.png
Inside Pages/auth/login/index.vue
Currently i am getting 404 not found.
Can someone help?
Solution 1:[1]
You can put static files like images inside the static folder in your NuxtJS directory. If you have an image called test.jpg inside your static folder you should reference it as /test.png in your pages and components.
Reference: Nuxt - Static directory
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | bar5um |
