Skip to content

Commit 832abae

Browse files
committed
fix: should remove all link tag which was converted
fix #10
1 parent 2e113de commit 832abae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ export default class Plugin {
4343

4444
static removeLinkTag(html: string, cssFileName: string) {
4545
return html.replace(
46-
new RegExp(`<link[^>]+href=['"]${cssFileName}['"][^>]+(>|\/>|><\/link>)`),
46+
new RegExp(
47+
`<link[^>]+href=['"]${cssFileName}['"][^>]+(>|\/>|><\/link>)`,
48+
'g',
49+
),
4750
'',
4851
)
4952
}

0 commit comments

Comments
 (0)