mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add the ignoreOrder option to MiniCssExtractPlugin (#37140)
* Add the ignoreOrder option to MiniCssExtractPlugin * Fix linting issues * Update version number
This commit is contained in:
parent
2b71012c26
commit
b12a3052a7
9
types/mini-css-extract-plugin/index.d.ts
vendored
9
types/mini-css-extract-plugin/index.d.ts
vendored
@ -1,7 +1,8 @@
|
||||
// Type definitions for mini-css-extract-plugin 0.2
|
||||
// Type definitions for mini-css-extract-plugin 0.8
|
||||
// Project: https://github.com/webpack-contrib/mini-css-extract-plugin
|
||||
// Definitions by: JounQin <https://github.com/JounQin>
|
||||
// Katsuya Hino <https://github.com/dobogo>
|
||||
// Spencer Miskoviak <https://github.com/skovy>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@ -27,6 +28,12 @@ declare namespace MiniCssExtractPlugin {
|
||||
*/
|
||||
filename?: string;
|
||||
chunkFilename?: string;
|
||||
/**
|
||||
* For projects where CSS ordering has been mitigated through consistent
|
||||
* use of scoping or naming conventions, the CSS order warnings can be
|
||||
* disabled by setting this flag to true for the plugin.
|
||||
*/
|
||||
ignoreOrder?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -65,3 +65,14 @@ configuration = {
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
configuration = {
|
||||
// ...
|
||||
plugins: [
|
||||
new MiniCssExtractPlugin({
|
||||
filename: 'styles.css',
|
||||
chunkFilename: 'style.css',
|
||||
ignoreOrder: true,
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user