| 配置项 | 默认值 | 说明 |
|---|---|---|
| buildPath | dist | 输出目录 |
| enableHotModuleReplacement | true | 启用热更新 |
| htmlWebpackPlugin | {inject: true, chunksSortMode: 'auto', cache: true, showErrors: true} |
htmlWebpackPlugin 插件配置, 参考 https://github.com/jantimon/html-webpack-plugin#configuration |
| browserSupports | last 2 version | 浏览器支持配置,影响 babel 和 autoprefixer, 配置参考:https://github.com/ai/browserslist |
| dll | { enable: false, enclude: [] } |
是否启用 dll,enclude 提供打入 dll 包的模块 |
| providePluginConfig | {} |
主要用来支持 jQuery �依赖全局挂载的老模块, 参考 [https://webpack.js.org/plugins/provide-plugin/] |
| (https://webpack.js.org/plugins/provide-plugin/) | ||
| babelUseBuiltIns | true | babel-preset-env#usebuiltins 配置 |
| https | false | 开发环境的 https 支持 |
| publicPath | ../ |
webpackConfig.output.publicPath, 只在构建时生效 |
| contentBase | undefined | 配置 devServer 的 contentBase,默认包含当前项目的输出目录,不需要配置 |
| enableTsCheckerPlugin | false | 开启 TsCheckerPlugin |
-
Couldn't load subscription status.
- Fork 1
EHDFE/ehdev-configer-react-app
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published