0π
For some reason, I did not manage to get vue.config.js to work.
Alternatively, I edited my webpack config, which as my build files mentioned was located at /config/index.js
Then, I proceeded to pass my build configurations to the build parameter which already appears on the file.
build: {
...
}
And it worked. I assume it may be because I used npm run dev instead of the vue-service-cli, so webpack did not go through the vue.config.js file.
0π
Make sure your build confiuration (in your case the webpack build configs) include your file.
Generally, you will have a source folder (often src
) and the builder will build all the files in that dir only. Then you have your destination directory (often dist
or build
) where your build files will be stored.
Two solutions:
- add your conf file to the build source.
- move your vue.conf.js file into your source directory