File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 10
10
< meta name ="theme-color " content ="#ababab " />
11
11
< link rel ="stylesheet " href ="styleguide/css/pattern-lab.css " media ="all " />
12
12
13
- < link rel ="preload " as ="image " href ="/images/bolt-logo--dark.svg ">
14
- < link rel ="preload " as ="image " href ="/images/bolt-logo--light.svg ">
13
+ < link rel ="prefetch " as ="image " href ="/images/bolt-logo--dark.svg ">
14
+ < link rel ="prefetch " as ="image " href ="/images/bolt-logo--light.svg ">
15
15
</ head >
16
16
17
17
< body class ="pl-c-body ">
Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ import './components/pl-tools-menu/pl-tools-menu';
14
14
import (
15
15
/* webpackChunkName: "pl-viewport-sizes" */
16
16
/* webpackMode: "lazy" */
17
- /* webpackPreload : true */
17
+ /* webpackPrefetch : true */
18
18
'./components/pl-viewport-size-list/pl-viewport-size-list' ) ;
19
19
20
20
import (
21
21
/* webpackChunkName: "pl-search" */
22
22
/* webpackMode: "lazy" */
23
- /* webpackPreload : true */
23
+ /* webpackPrefetch : true */
24
24
'./components/pl-search/pl-search' ) ;
25
25
26
26
import (
27
27
/* webpackChunkName: "pl-modal-viewer" */
28
28
/* webpackMode: "lazy" */
29
- /* webpackPreload : true */
29
+ /* webpackPrefetch : true */
30
30
'./components/modal-viewer' ) ;
31
31
32
32
Original file line number Diff line number Diff line change @@ -249,6 +249,10 @@ module.exports = async function() {
249
249
staticDir : path . resolve ( process . cwd ( ) , `${ config . buildDir } /` ) ,
250
250
// Required - Routes to render.
251
251
routes : [ '/' ] ,
252
+ postProcess ( context ) {
253
+ context . html = context . html . replace ( / < s c r i p t \s [ ^ > ] * c h a r s e t = \" u t f - 8 \" [ ^ > ] * > < \/ s c r i p t > / gi, '' ) ;
254
+ return context ;
255
+ }
252
256
} ) ,
253
257
// clear out the buildDir on every fresh Webpack build
254
258
new CleanWebpackPlugin (
@@ -270,7 +274,6 @@ module.exports = async function() {
270
274
template : 'src/html/index.html' ,
271
275
inject : false ,
272
276
} ) ,
273
- new PreloadWebpackPlugin ( ) ,
274
277
new MiniCssExtractPlugin ( {
275
278
filename : `[name].css` ,
276
279
chunkFilename : `[id].css` ,
You can’t perform that action at this time.
0 commit comments