File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change
1
+ declare module 'extract-css-chunks-webpack-plugin' {
2
+ import { ChunkData , Loader , Plugin } from 'webpack' ;
3
+
4
+ class ExtractCssChunksPlugin extends Plugin {
5
+ static loader : Loader ;
6
+
7
+ constructor ( options ?: ExtractCssChunksPlugin . PluginOptions ) ;
8
+ }
9
+
10
+ namespace ExtractCssChunksPlugin {
11
+ interface PluginOptions {
12
+ /**
13
+ * The filename of the entry chunk.
14
+ */
15
+ filename ?: string ;
16
+ /**
17
+ * The filename of non-entry chunks.
18
+ */
19
+ chunkFilename ?: string ;
20
+ /**
21
+ * Generates a file name (or template) based on chunk data.
22
+ */
23
+ moduleFilename ?: ( chunk : ChunkData ) => string ;
24
+ /**
25
+ * Remove warnings about conflicting order.
26
+ */
27
+ ignoreOrder ?: boolean ;
28
+ /**
29
+ * Inserts `<link>` at the given position (https://github.com/faceyspacey/extract-css-chunks-webpack-pluginn#insert).
30
+ */
31
+ insert ?: string | Function ;
32
+ }
33
+ }
34
+
35
+ export = ExtractCssChunksPlugin ;
36
+ }
Original file line number Diff line number Diff line change 31
31
" extract-css-chunks-webpack-plugin"
32
32
],
33
33
"main" : " dist/cjs.js" ,
34
+ "types" : " index.d.ts" ,
34
35
"engines" : {
35
36
"node" : " >= 6.9.0"
36
37
},
59
60
"travis" : " npm run ci:coverage"
60
61
},
61
62
"files" : [
62
- " dist"
63
+ " dist" ,
64
+ " index.d.ts"
63
65
],
64
66
"peerDependencies" : {
65
67
"webpack" : " ^4.4.0 || ^5.0.0"
You can’t perform that action at this time.
0 commit comments