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