Skip to content

Commit 487e820

Browse files
committed
chore: code format
1 parent ac1197a commit 487e820

2 files changed

Lines changed: 18 additions & 16 deletions

File tree

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import Critters from "critters-webpack-plugin";
22
import { Configuration } from "webpack";
33

4-
const critters: Configuration["plugins"] = [new Critters({
5-
compress: true,
6-
external: true,
7-
inlineFonts: false,
8-
preloadFonts: true,
9-
keyframes: "critical",
10-
noscriptFallback: true,
11-
inlineThreshold: 0,
12-
mergeStylesheets: true,
13-
additionalStylesheets: ["./base.css"],
14-
pruneSource: true,
15-
minimumExternalSize: 0,
16-
})];
4+
const critters: Configuration["plugins"] = [
5+
new Critters({
6+
compress: true,
7+
external: true,
8+
inlineFonts: false,
9+
preloadFonts: true,
10+
keyframes: "critical",
11+
noscriptFallback: true,
12+
inlineThreshold: 0,
13+
mergeStylesheets: true,
14+
additionalStylesheets: ["./base.css"],
15+
pruneSource: true,
16+
minimumExternalSize: 0,
17+
}),
18+
];

types/critters-webpack-plugin/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ export default Critters;
44
declare class Critters implements WebpackPluginInstance {
55
constructor(options?: Critters.CrittersOptions);
66
apply: (compiler: Compiler) => void;
7-
getCssAsset(href: any, style: any ): Promise<any>;
8-
checkInlineThreshold(link: any, style: any , sheet: any): boolean;
7+
getCssAsset(href: any, style: any): Promise<any>;
8+
checkInlineThreshold(link: any, style: any, sheet: any): boolean;
99
embedAdditionalStylesheet(document: any): Promise<void>;
10-
pruneSource(style: any, before: any, sheetInverse: any): boolean
10+
pruneSource(style: any, before: any, sheetInverse: any): boolean;
1111
}
1212

1313
declare namespace Critters {

0 commit comments

Comments
 (0)