Skip to content

Commit 3a2734e

Browse files
committed
Allow build in our version.
1 parent 39cb00b commit 3a2734e

File tree

4 files changed

+128
-1
lines changed

4 files changed

+128
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ typings/
6161
.next
6262
/.idea
6363
/.rpt2_cache
64-
/build

build/index.d.ts

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

build/index.js

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

build/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)