We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2d192d commit 300203eCopy full SHA for 300203e
src/index.ts
@@ -20,7 +20,7 @@ interface Config {
20
export default class Plugin
21
{
22
static addStyle(html: string, style: string) {
23
- return html.replace('</head>', `<style>${style}</style></head>`);
+ return html.replace('<!-- inline_css_plugin -->', `<style>${style}</style>`);
24
}
25
26
static removeLinkTag(html: string, cssFileName: string) {
@@ -94,4 +94,4 @@ export default class Plugin
94
function is(filenameExtension: string) {
95
const reg = new RegExp(`\.${filenameExtension}$`);
96
return (fileName: string) => reg.test(fileName);
97
-}
+}
0 commit comments