Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0177e45
commit c3c22f8
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
declare module 'extract-css-chunks-webpack-plugin' { | ||
import { ChunkData, Loader, Plugin } from 'webpack'; | ||
|
||
class ExtractCssChunksPlugin extends Plugin { | ||
static loader: Loader; | ||
|
||
constructor(options?: ExtractCssChunksPlugin.PluginOptions); | ||
} | ||
|
||
namespace ExtractCssChunksPlugin { | ||
interface PluginOptions { | ||
/** | ||
* The filename of the entry chunk. | ||
*/ | ||
filename?: string; | ||
/** | ||
* The filename of non-entry chunks. | ||
*/ | ||
chunkFilename?: string; | ||
/** | ||
* Generates a file name (or template) based on chunk data. | ||
*/ | ||
moduleFilename?: (chunk: ChunkData) => string; | ||
/** | ||
* Remove warnings about conflicting order. | ||
*/ | ||
ignoreOrder?: boolean; | ||
/** | ||
* Inserts `<link>` at the given position (https://github.com/faceyspacey/extract-css-chunks-webpack-pluginn#insert). | ||
*/ | ||
insert?: string | Function; | ||
} | ||
} | ||
|
||
export = ExtractCssChunksPlugin; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters