UNPKG

@plugin-light/project-config-pixui

Version:
118 lines (117 loc) 3.21 kB
import type { IOptions } from './types'; export declare function getPixuiWebpackConfig(options: IOptions): { entry: { [k: string]: string | undefined; }; output: { path: string; filename: string; publicPath: string; }; resolve: { modules: string[]; extensions: string[]; alias: { preact$: string; "preact/hooks$": string; "preact-router/match": string; "react-window": string; "@improbable-eng/grpc-web": string; react: string; }; }; module: { rules: ({ test: RegExp; use: { loader: string; options: { presets: (string | { allowNamespaces: boolean; })[][]; plugins: (string | (string | { legacy: boolean; })[] | (string | { pragma: string; })[] | (string | { module: string; import: string; })[])[]; }; }; exclude: RegExp; loader?: undefined; options?: undefined; } | { test: RegExp; use: (string | { loader: string; options: { modules?: undefined; } | { modules: boolean; }; })[]; exclude?: undefined; loader?: undefined; options?: undefined; } | { test: RegExp; use: (string | { loader: string; options: { modules: { localIdentName: string; }; javascriptEnabled?: undefined; }; } | { loader: string; options: { javascriptEnabled: boolean; modules?: undefined; }; })[]; exclude?: undefined; loader?: undefined; options?: undefined; } | { test: RegExp; loader: string; options: { name: string; }; use?: undefined; exclude?: undefined; })[]; }; optimization: { minimize: boolean; }; devtool: string; plugins: any[]; devServer: { sockPath: string; sockPort: string | number; port: string | number; host: string; transportMode: string; hot: boolean; liveReload: boolean; disableHostCheck: boolean; overlay: boolean; writeToDisk: boolean; contentBase: string[]; watchContentBase: boolean; historyApiFallback: { rewrites: { from: RegExp; to: string; }[]; }; headers: { 'Access-Control-Allow-Origin': string; }; before: (app: any) => void; }; };