@modern-js/module-tools-v2
Version:
The meta-framework suite designed from scratch for frontend-focused modern web development.
10 lines • 682 B
TypeScript
import type { PostcssOptions, Style } from '@modern-js/libuild';
import type { AcceptedPlugin as PostCSSPlugin } from 'postcss';
export declare type LessOptions = Required<Style>['less'];
export declare type SassOptions = Required<Style>['sass'];
export declare type LessConfig = LessOptions | ((options: LessOptions) => LessOptions | void);
export declare type SassConfig = SassOptions | ((options: SassOptions) => SassOptions | void);
export declare type PostCSSConfigUtils = {
addPlugins: (plugins: PostCSSPlugin | PostCSSPlugin[]) => void;
};
export declare type PostCSSConfig = PostcssOptions | ((options: PostcssOptions, utils: PostCSSConfigUtils) => PostcssOptions | void);