mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-23 13:29:09 -05:00
@@ -1,5 +1,10 @@
|
||||
module.exports = (api, options) => {
|
||||
api.chainWebpack(webpackConfig => {
|
||||
const target = process.env.VUE_CLI_BUILD_TARGET
|
||||
if (target && target !== 'app') {
|
||||
return
|
||||
}
|
||||
|
||||
const name = api.service.pkg.name
|
||||
const userOptions = options.pwa || {}
|
||||
|
||||
|
||||
@@ -194,10 +194,9 @@ module.exports = class Service {
|
||||
|
||||
// check if the user has manually mutated output.publicPath
|
||||
const target = process.env.VUE_CLI_BUILD_TARGET
|
||||
const exceptionTargets = ['lib', 'wc', 'wc-async']
|
||||
if (
|
||||
!process.env.VUE_CLI_TEST &&
|
||||
!exceptionTargets.includes(target) &&
|
||||
(target && target !== 'app') &&
|
||||
config.output.publicPath !== this.projectOptions.baseUrl
|
||||
) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user