Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 14 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Plugin } from 'rollup'; |
||
2 | interface CriticalPages { |
||
3 | uri: string; |
||
4 | template: string; |
||
5 | } |
||
6 | interface CriticalPluginConfig { |
||
7 | criticalUrl: string; |
||
8 | criticalBase?: string; |
||
9 | criticalPages: Partial<CriticalPages>[]; |
||
10 | criticalConfig?: Partial<CriticalConfig>; |
||
11 | } |
||
12 | declare function PluginCritical(pluginConfig: CriticalPluginConfig, callback?: Function): Plugin; |
||
13 | export default PluginCritical; |
||
14 |