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 e8db0a5 commit 8cd4ad9Copy full SHA for 8cd4ad9
src/core/base-plugin.ts
@@ -75,7 +75,9 @@ export class BasePlugin {
75
htmlFileName: string
76
style: string
77
}) {
78
- const styleString = `<style type="text/css">${style}</style>`
+ const styleString = this.config.noStyleTag
79
+ ? style
80
+ : `<style type="text/css">${style}</style>`
81
const replaceValues = [styleString, this.replaceConfig.target]
82
83
if (this.replaceConfig.position === 'after') {
src/types.ts
@@ -14,6 +14,7 @@ export interface Config {
14
filter?(fileName: string): boolean
15
leaveCSSFile?: boolean
16
replace?: ReplaceConfig
17
+ noStyleTag?: boolean
18
}
19
20
export interface FileCache {
0 commit comments