UNPKG

@qilinjs/webpack

Version:
42 lines (41 loc) 1.05 kB
import webpack from 'webpack' import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer' declare type IBabelOptions = Function | string | [string, any, string?] export interface UserConfig { devtool?: webpack.Options.Devtool outputPath?: string publicPath?: string alias?: { [key: string]: string } define?: { [key: string]: any } copy?: string[] terserOptions?: object inlineLimit?: number externals?: any postcssLoaderOptions?: object lessVars?: object browsers?: string[] postcssPlugins?: any[] proxy?: any contentBase?: string[] | string | boolean devServer?: object htmlWebpack?: Object analyze?: BundleAnalyzerPlugin.Options useAntd?: boolean splitChunks?: webpack.Options.SplitChunksOptions babelPlugins?: IBabelOptions[] babelPresets?: IBabelOptions[] } export interface QilinWebpackConfig { config: UserConfig cwd: string env: 'development' | 'production' entry?: { [key: string]: string } absOutputPath?: string } export {}