In dev mode with npm start the image is being loaded correctly.
But when I build for release (npm run release), I get an error:
ERROR in ./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-15b1ee69!./~/less-loader/lib/loader.js!./~/vue-loader/lib/selector.js?type=styles&index=0!./app/Secondary.vue
Module not found: Error: Cannot resolve 'file' or 'directory' ./static/flags/4x3/un.svg in /path/to/app
@ ./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-15b1ee69!./~/less-loader/lib/loader.js!./~/vue-loader/lib/selector.js?type=styles&index=0!./app/Secondary.vue 6:239730-239766
I am using the default webpack config as the repo.
In dev mode with
npm start
the image is being loaded correctly. But when I build for release (npm run release
), I get an error:I am using the default webpack config as the repo.
I have the files in the static directory