File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ module.exports = function (webpackEnv) {
27
27
output : {
28
28
...template . output ,
29
29
filename : 'ssr.js' ,
30
- libraryTarget : 'commonjs2' ,
31
- // use '' instead of '/' to make urls relative to base href
32
- publicPath : ''
30
+ libraryTarget : 'commonjs2'
33
31
} ,
34
32
optimization : {
35
33
...template . optimization ,
@@ -55,30 +53,14 @@ module.exports = function (webpackEnv) {
55
53
name : 'client' ,
56
54
output : {
57
55
...template . output ,
58
- // use '' instead of '/' to make urls relative to base href
59
- publicPath : ''
60
56
} ,
61
57
// filter out some plugins
62
58
plugins : template . plugins . filter ( plugin =>
63
59
[
64
60
// seems to break multicompiler dev server watch mode
65
61
ForkTsCheckerWebpackPlugin ,
66
- // interpolation of '%PUBLIC_URL%' will happen at runtime, not compile time
67
- InterpolateHtmlPlugin ,
68
- // this will be replaced by a modified version
69
- webpack . DefinePlugin
70
62
] . every ( pluginClass => ! ( plugin instanceof pluginClass ) )
71
- ) . concat ( [
72
- // redefine process.env values on the client
73
- new webpack . DefinePlugin ( {
74
- 'process.env' : {
75
- // use existing values
76
- ...env . stringified [ 'process.env' ] ,
77
- // override with base href
78
- PUBLIC_URL : 'document.getElementsByTagName("base")[0].href'
79
- }
80
- } ) ,
81
- ] )
63
+ )
82
64
} ,
83
65
] ;
84
66
} ;
You can’t perform that action at this time.
0 commit comments