Skip to content

Commit 8b5726b

Browse files
committed
改名字
whatever the name is
1 parent a062b97 commit 8b5726b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/base-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export class BasePlugin {
6969
}
7070

7171
protected isCurrentFileNeedsToBeLinked(fileName: string): boolean {
72-
if (typeof this.config.exclude === 'function') {
73-
return this.config.exclude(fileName)
72+
if (typeof this.config.ignore === 'function') {
73+
return this.config.ignore(fileName)
7474
} else {
7575
return true
7676
}

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const DEFAULT_REPLACE_CONFIG: ReplaceConfig = {
1212

1313
export interface Config {
1414
filter?(fileName: string): boolean
15-
exclude?(fileName: string): boolean
15+
ignore?(fileName: string): boolean
1616
leaveCSSFile?: boolean
1717
replace?: ReplaceConfig
1818
}

0 commit comments

Comments
 (0)