Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(postcss-reduce-initial): ensure options are always read (#1482)
Fix #1436 Ensure options are read also when the plugin is configured in cssnano instead as a standalone PostCSS plugin.
- Loading branch information
1 parent
99d1e6a
commit 91a7cdb
Showing
3 changed files
with
28 additions
and
6 deletions.
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
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
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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
export = pluginCreator; | ||
/** @typedef {{ignore?: string[]}} Options */ | ||
/** | ||
* @type {import('postcss').PluginCreator<void>} | ||
* @type {import('postcss').PluginCreator<Options>} | ||
* @param {Options} options | ||
* @return {import('postcss').Plugin} | ||
*/ | ||
declare function pluginCreator(): import('postcss').Plugin; | ||
declare function pluginCreator(options?: Options): import('postcss').Plugin; | ||
declare namespace pluginCreator { | ||
const postcss: true; | ||
export { postcss, Options }; | ||
} | ||
type Options = { | ||
ignore?: string[]; | ||
}; | ||
declare var postcss: true; |