@@ -44,21 +44,24 @@ const jsToBottomNoModule = () => {
44
44
html = html . replace ( scriptTag , '' )
45
45
customInjection += scriptTag
46
46
47
- const linkTagModulePreloadList = [ ...html . matchAll ( / < l i n k r e l = " m o d u l e p r e l o a d " [ ^ > ] * > / g) ]
47
+ const linkTagModulePreloadList = [ ...html . matchAll ( / < l i n k r e l = " m o d u l e p r e l o a d " [ ^ > ] * > / g) ]
48
48
console . log ( '------------------------------------------------------------' )
49
49
linkTagModulePreloadList . forEach ( ( linkData ) => {
50
50
console . log ( '\n modulepreload' , linkData [ 0 ] , '\n' )
51
51
html = html . replace ( linkData [ 0 ] , '' )
52
52
customInjection += linkData [ 0 ]
53
53
} )
54
54
55
- let linkTagStyleSheetList = [ ...html . matchAll ( / < l i n k r e l = " s t y l e s h e e t " [ ^ > ] * > / g) ]
56
- console . log ( '------------------------------------------------------------' )
57
- linkTagStyleSheetList . forEach ( ( linkData ) => {
58
- console . log ( '\n stylesheet' , linkData [ 0 ] , '\n' )
59
- html = html . replace ( linkData [ 0 ] , '' )
60
- customInjection += linkData [ 0 ]
61
- } )
55
+ /*
56
+ * uncomment bellow after CSS fix on pull image digest cluster env and others wherever order is giving issues
57
+ */
58
+ // let linkTagStyleSheetList = [...html.matchAll(/<link rel="stylesheet"[^>]*>/g)]
59
+ // console.log('------------------------------------------------------------')
60
+ // linkTagStyleSheetList.forEach((linkData) => {
61
+ // console.log('\n stylesheet', linkData[0], '\n')
62
+ // html = html.replace(linkData[0], '')
63
+ // customInjection += linkData[0]
64
+ // })
62
65
63
66
html = html . replace ( '<!-- # INSERT SCRIPT HERE -->' , customInjection )
64
67
console . log ( '------------------------------------------------------------' )
0 commit comments