postcss-minify-selectors
Version:
Minify selectors with PostCSS.
22 lines • 863 B
TypeScript
import { isInvalidSelector } from './lib/isInvalidSelector.js';
export type AutoprefixerOptions = {
overrideBrowserslist?: string | string[];
};
export type BrowserslistOptions = Pick<import('browserslist').Options, 'stats' | 'path' | 'env'>;
export type Options = {
sort?: boolean;
convertToIs?: boolean;
} & AutoprefixerOptions & BrowserslistOptions;
/**
* Minify selectors from tokenizer spans. Function arguments are normalized
* bottom-up without recursive descent.
* @param {Options} opts
* @return {import('postcss').Plugin}
*/
declare function pluginCreator(opts?: Options): import('postcss').Plugin;
declare namespace pluginCreator {
var postcss: true;
}
declare const moduleExports: typeof pluginCreator;
export { moduleExports as default, moduleExports as 'module.exports', isInvalidSelector, };
//# sourceMappingURL=index.d.ts.map