Skip to content

Commit 0590aad

Browse files
authored
Add files via upload
1 parent 38ec748 commit 0590aad

File tree

3 files changed

+124
-0
lines changed

3 files changed

+124
-0
lines changed

index.d.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { Compiler } from 'webpack';
2+
interface ReplaceConfig {
3+
position?: 'before' | 'after';
4+
removeTarget?: boolean;
5+
target: string;
6+
}
7+
interface Config {
8+
filter?(fileName: string): boolean;
9+
replace?: ReplaceConfig;
10+
}
11+
export default class Plugin {
12+
private readonly config;
13+
static addStyle(html: string, style: string, replaceConfig: ReplaceConfig): string;
14+
static removeLinkTag(html: string, cssFileName: string): string;
15+
static cleanUp(html: string, replaceConfig: ReplaceConfig): string;
16+
private css;
17+
private html;
18+
constructor(config?: Config);
19+
private filter;
20+
private prepare;
21+
private process;
22+
apply(compiler: Compiler): void;
23+
}
24+
export {};

index.js

Lines changed: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)