Skip to content

Commit 300203e

Browse files
authored
Update index.ts
1 parent c2d192d commit 300203e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface Config {
2020
export default class Plugin
2121
{
2222
static addStyle(html: string, style: string) {
23-
return html.replace('</head>', `<style>${style}</style></head>`);
23+
return html.replace('<!-- inline_css_plugin -->', `<style>${style}</style>`);
2424
}
2525

2626
static removeLinkTag(html: string, cssFileName: string) {
@@ -94,4 +94,4 @@ export default class Plugin
9494
function is(filenameExtension: string) {
9595
const reg = new RegExp(`\.${filenameExtension}$`);
9696
return (fileName: string) => reg.test(fileName);
97-
}
97+
}

0 commit comments

Comments
 (0)