This repository was archived by the owner on Jan 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,18 @@ module.exports = {
48
48
// generate output HTML
49
49
new HTMLPlugin ( {
50
50
template : fs . existsSync ( themedIndex ) ? themedIndex : 'src/index.template.html' ,
51
- filename : 'index.html'
51
+ filename : 'index.html' ,
52
+ inject : false
52
53
} ) ,
53
54
new HTMLPlugin ( {
54
55
template : fs . existsSync ( themedIndex ) ? themedIndexMinimal : 'src/index.minimal.template.html' ,
55
- filename : 'index.minimal.html'
56
+ filename : 'index.minimal.html' ,
57
+ inject : false
56
58
} ) ,
57
59
new HTMLPlugin ( {
58
60
template : fs . existsSync ( themedIndex ) ? themedIndexBasic : 'src/index.basic.template.html' ,
59
- filename : 'index.basic.html'
61
+ filename : 'index.basic.html' ,
62
+ inject : false
60
63
} )
61
64
] ,
62
65
devtool : 'source-map' ,
@@ -108,7 +111,6 @@ module.exports = {
108
111
test : / \. v u e $ / ,
109
112
loader : 'vue-loader' ,
110
113
options : {
111
- optimizeSSR : false ,
112
114
preserveWhitespace : false ,
113
115
postcss : [ autoprefixer ( ) ] ,
114
116
}
Original file line number Diff line number Diff line change 18
18
s . parentNode . insertBefore ( wf , s ) ;
19
19
} ) ( ) ;
20
20
</ script >
21
-
22
- < % for (var chunk of webpack.chunks) {
23
- for (var file of chunk.files) {
24
- if (file.match(/\.(js|css)$/)) { %>
25
- < link rel ="<%= chunk.initial?'preload':'prefetch' %> " href ="<%= htmlWebpackPlugin.files.publicPath + file %> " as ="<%= file.match(/\.css$/)?'style':'script' %> "> < % }}} %>
26
21
{{{ renderResourceHints() }}}
27
22
{{{ renderStyles() }}}
28
23
</ head >
Original file line number Diff line number Diff line change 20
20
s . parentNode . insertBefore ( wf , s ) ;
21
21
} ) ( ) ;
22
22
</ script >
23
- < % for (var chunk of webpack.chunks) {
24
- for (var file of chunk.files) {
25
- if (file.match(/\.(js|css)$/)) { %>
26
- < link rel ="<%= chunk.initial?'preload':'prefetch' %> " href ="<%= htmlWebpackPlugin.files.publicPath + file %> " as ="<%= file.match(/\.css$/)?'style':'script' %> "> < % }}} %>
27
23
{{{ renderResourceHints() }}}
28
24
{{{ renderStyles() }}}
29
25
</ head >
You can’t perform that action at this time.
0 commit comments