We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89982df commit 57ce32aCopy full SHA for 57ce32a
packages/@vue/cli-service/lib/commands/build/index.js
@@ -58,12 +58,17 @@ module.exports = (api, options) => {
58
59
// respect inline build destination
60
if (args.dest) {
61
- api.configureWebpack({
62
- output: {
63
- path: path.resolve(
64
- api.service.context,
65
- args.dest
66
- )
+ const dest = path.resolve(
+ api.service.context,
+ args.dest
+ )
+ api.chainWebpack(config => {
+ config.output.path(dest)
67
+ if (args.target === 'app') {
68
+ config.plugin('copy').tap(args => {
69
+ args[0][0].to = dest
70
+ return args
71
+ })
72
}
73
})
74
0 commit comments