File tree Expand file tree Collapse file tree
types/critters-webpack-plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import Critters from "critters-webpack-plugin" ;
22import { 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+ ] ;
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ export default Critters;
44declare 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
1313declare namespace Critters {
You can’t perform that action at this time.
0 commit comments