UNPKG

@modern-js/module-tools-v2

Version:

The meta-framework suite designed from scratch for frontend-focused modern web development.

33 lines 1.42 kB
/// <reference types="less" /> import type { PluginAPI } from '@modern-js/core'; import type { PostcssOptions } from '@modern-js/libuild'; import type { UserConfig } from '../types'; import type { ModuleToolsHooks } from '../types/hooks'; export declare const getLessConfig: (config: UserConfig) => Promise<{ additionalData?: (string | ((filePath: string) => string)) | undefined; implementation?: string | object | undefined; lessOptions?: Less.Options | undefined; }>; export declare const getSassConfig: (config: UserConfig) => Promise<{ additionalData?: (string | ((filePath: string) => string)) | undefined; implementation?: string | object | undefined; sassOptions?: import("@modern-js/libuild").sassOptions | undefined; }>; export declare const getPostcssConfig: (config: UserConfig) => Promise<PostcssOptions & { $$tools?: string | undefined; }>; export declare const getStyleConfig: (api: PluginAPI<ModuleToolsHooks>) => Promise<{ less: { additionalData?: (string | ((filePath: string) => string)) | undefined; implementation?: string | object | undefined; lessOptions?: Less.Options | undefined; }; sass: { additionalData?: (string | ((filePath: string) => string)) | undefined; implementation?: string | object | undefined; sassOptions?: import("@modern-js/libuild").sassOptions | undefined; }; postcss: PostcssOptions & { $$tools?: string | undefined; }; }>;