File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -376,6 +376,7 @@ class QuasarConfig {
376
376
webpackManifest : this . ctx . prod ,
377
377
vueRouterMode : 'hash' ,
378
378
preloadChunks : true ,
379
+ forceDevPublicPath : false ,
379
380
// transpileDependencies: [], // leaving here for completeness
380
381
devtool : this . ctx . dev
381
382
? '#cheap-module-eval-source-map'
@@ -474,7 +475,7 @@ class QuasarConfig {
474
475
}
475
476
476
477
cfg . build . publicPath =
477
- this . ctx . prod && cfg . build . publicPath && [ 'spa' , 'pwa' ] . includes ( this . ctx . modeName )
478
+ ( this . ctx . prod || cfg . build . forceDevPublicPath ) && cfg . build . publicPath && [ 'spa' , 'pwa' ] . includes ( this . ctx . modeName )
478
479
? formatPublicPath ( cfg . build . publicPath )
479
480
: ( cfg . build . vueRouterMode !== 'hash' ? '/' : '' )
480
481
@@ -711,7 +712,7 @@ class QuasarConfig {
711
712
}
712
713
}
713
714
else {
714
- cfg . build . env . __statics = `"${ this . ctx . dev ? '/' : cfg . build . publicPath || '/' } statics"`
715
+ cfg . build . env . __statics = `"${ ( ( this . ctx . prod || cfg . build . forceDevPublicPath ) && cfg . build . publicPath ) ? cfg . build . publicPath : '/' } statics"`
715
716
}
716
717
717
718
appFilesValidations ( cfg )
You can’t perform that action at this time.
0 commit comments