File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = ( api , options ) => {
2
2
api . chainWebpack ( webpackConfig => {
3
+ const target = process . env . VUE_CLI_BUILD_TARGET
4
+ if ( target && target !== 'app' ) {
5
+ return
6
+ }
7
+
3
8
const name = api . service . pkg . name
4
9
const userOptions = options . pwa || { }
5
10
Original file line number Diff line number Diff line change @@ -194,10 +194,9 @@ module.exports = class Service {
194
194
195
195
// check if the user has manually mutated output.publicPath
196
196
const target = process . env . VUE_CLI_BUILD_TARGET
197
- const exceptionTargets = [ 'lib' , 'wc' , 'wc-async' ]
198
197
if (
199
198
! process . env . VUE_CLI_TEST &&
200
- ! exceptionTargets . includes ( target ) &&
199
+ ( target && target !== 'app' ) &&
201
200
config . output . publicPath !== this . projectOptions . baseUrl
202
201
) {
203
202
throw new Error (
You can’t perform that action at this time.
0 commit comments