3.0.0-beta.6
https://github.com/NathanKleekamp/vue-dist-bug-min-repro
otherLocation
vue.config.js
file with this content: https://github.com/NathanKleekamp/vue-dist-bug-min-repro/blob/master/vue.config.jsnpm run build
All the build assets should go to the newly defined dist
directory.
About half the files go to otherLocation
, but the favicon, manifest.json, and images go to the default dist
location.
Thanks for all your hard work on this wonderful framework!
Not 100% sure if it is desired to have the output.path
cause the webpack-copy-plugin to
option be overridden. If not, the solution is to set your outputDir
to the relative path (so otherLocation
in your scenario) or you can further customize your webpack config from your example with
config
.plugin('copy')
.tap(args => {
args[0][0].to = distPath
return args
})
If it is desired to have a customized output.path
be sent/forwarded onto the config for the webpack-copy-plugin
I can look into doing that.
That's why you should specify the directory using outputDir
instead of directly mutating the webpack config. The outputDir
needs to be available as the internal webpack config is being created.
We should probably find a way to add warnings when the user attempts to modify options that they should not be modifying... in particular anything under output
.