0.1.10 • Published 6 years ago

ehdev-configer-scms v0.1.10

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

EHDEV-CONFIGER-SCMS


Build Status npm npm node GitHub tag David David

配置说明

配置项默认值说明
buildPathdist输出目录
enableHotModuleReplacementtrue启用热更新
ignoreHtmlTemplatefalse忽略输出 html
entryList{app: './index'}配置 entry
htmlList[]用于 htmlWebpackPlugin 配置,如 [{"files": {"js": ["index.less"]},"chunks": ["app"],"filename":"index.html","template": "./index.html"}
htmlWebpackPlugin{inject: true, chunksSortMode: 'auto', cache: true, showErrors: true}htmlWebpackPlugin 插件配置, 参考 https://github.com/jantimon/html-webpack-plugin#configuration
alias{}对应 webpack 配置 resolve.alias
externals{}对应 webpack 配置 externals
browserSupportslast 2 version浏览器支持配置,影响 babelautoprefixer, 配置参考:https://github.com/ai/browserslist
dll{ enable: false, enclude: [] }是否启用 dll,enclude 提供打入 dll 包的模块
providePluginConfig{}主要用来支持 jQuery 依赖全局挂载的老模块, 参考 https://webpack.js.org/plugins/provide-plugin/
babelUseBuiltInstruebabel-preset-env#usebuiltins 配置
httpsfalse开发环境的 https 支持
publicPath../webpackConfig.output.publicPath, 只在构建时生效
contentBaseundefined配置 devServer 的 contentBase,默认包含当前项目的输出目录,不需要配置