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 = {
4848 // generate output HTML
4949 new HTMLPlugin ( {
5050 template : fs . existsSync ( themedIndex ) ? themedIndex : 'src/index.template.html' ,
51- filename : 'index.html'
51+ filename : 'index.html' ,
52+ inject : false
5253 } ) ,
5354 new HTMLPlugin ( {
5455 template : fs . existsSync ( themedIndex ) ? themedIndexMinimal : 'src/index.minimal.template.html' ,
55- filename : 'index.minimal.html'
56+ filename : 'index.minimal.html' ,
57+ inject : false
5658 } ) ,
5759 new HTMLPlugin ( {
5860 template : fs . existsSync ( themedIndex ) ? themedIndexBasic : 'src/index.basic.template.html' ,
59- filename : 'index.basic.html'
61+ filename : 'index.basic.html' ,
62+ inject : false
6063 } )
6164 ] ,
6265 devtool : 'source-map' ,
@@ -108,7 +111,6 @@ module.exports = {
108111 test : / \. v u e $ / ,
109112 loader : 'vue-loader' ,
110113 options : {
111- optimizeSSR : false ,
112114 preserveWhitespace : false ,
113115 postcss : [ autoprefixer ( ) ] ,
114116 }
Original file line number Diff line number Diff line change 1818 s . parentNode . insertBefore ( wf , s ) ;
1919 } ) ( ) ;
2020 </ 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' %> "> < % }}} %>
2621 {{{ renderResourceHints() }}}
2722 {{{ renderStyles() }}}
2823 </ head >
Original file line number Diff line number Diff line change 2020 s . parentNode . insertBefore ( wf , s ) ;
2121 } ) ( ) ;
2222 </ 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' %> "> < % }}} %>
2723 {{{ renderResourceHints() }}}
2824 {{{ renderStyles() }}}
2925 </ head >
You can’t perform that action at this time.
0 commit comments