File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,6 @@ export default class Plugin
23
23
return html . replace ( '<!-- inline_css_outlet -->' , `<style>${ style } </style>` ) ;
24
24
}
25
25
26
- static removeLinkTag ( html : string , cssFileName : string ) {
27
- return html . replace (
28
- new RegExp ( `<link[^>]+href=['"]${ cssFileName } ['"][^>]+(>|\/>|><\/link>)` ) ,
29
- '' ,
30
- ) ;
31
- }
32
-
33
26
private config : Config ;
34
27
35
28
private css : File = { } ;
@@ -57,7 +50,6 @@ export default class Plugin
57
50
const isCurrentFileNeedsToBeInlined = this . filter ( fileName ) ;
58
51
if ( isCurrentFileNeedsToBeInlined ) {
59
52
this . css [ fileName ] = assets [ fileName ] . source ( ) ;
60
- delete assets [ fileName ] ;
61
53
}
62
54
} else if ( isHTML ( fileName ) ) {
63
55
this . html [ fileName ] = assets [ fileName ] . source ( ) ;
@@ -72,7 +64,6 @@ export default class Plugin
72
64
73
65
Object . keys ( this . css ) . forEach ( ( key ) => {
74
66
html = Plugin . addStyle ( html , this . css [ key ] ) ;
75
- html = Plugin . removeLinkTag ( html , publicPath + key ) ;
76
67
} ) ;
77
68
78
69
assets [ htmlFileName ] = {
You can’t perform that action at this time.
0 commit comments