We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1732007 commit 5064cf5Copy full SHA for 5064cf5
packages/@vue/cli-service/lib/Service.js
@@ -196,14 +196,14 @@ module.exports = class Service {
196
const target = process.env.VUE_CLI_BUILD_TARGET
197
const exceptionTargets = ['lib', 'wc', 'wc-async']
198
if (
199
+ !process.env.VUE_CLI_TEST &&
200
!exceptionTargets.includes(target) &&
201
config.output.publicPath !== this.projectOptions.baseUrl
202
) {
- error(
203
+ throw new Error(
204
`Do not modify webpack output.publicPath directly. ` +
205
`Use the "baseUrl" option in vue.config.js instead.`
206
)
- process.exit(1)
207
}
208
209
return config
0 commit comments