mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-13 12:40:18 -05:00
test: do not assert publicPath mutation during tests
This commit is contained in:
@@ -196,14 +196,14 @@ module.exports = class Service {
|
||||
const target = process.env.VUE_CLI_BUILD_TARGET
|
||||
const exceptionTargets = ['lib', 'wc', 'wc-async']
|
||||
if (
|
||||
!process.env.VUE_CLI_TEST &&
|
||||
!exceptionTargets.includes(target) &&
|
||||
config.output.publicPath !== this.projectOptions.baseUrl
|
||||
) {
|
||||
error(
|
||||
throw new Error(
|
||||
`Do not modify webpack output.publicPath directly. ` +
|
||||
`Use the "baseUrl" option in vue.config.js instead.`
|
||||
)
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user