context
参数为一个路径地址,webpack将从这个路径获取entry和loader
entry
编译打包代码的入口文件
mode
指明打包使用的环境配置:‘none’ | ‘development’ | ‘production’ 。默认production
output
配置打包之后的文件的输出路径以及输出方式
module
配置项目对不同模块的处理方式
resolve
配置如何解析模块
plugins
webpack打包时使用的插件
devServer
开发模式下的配置参数
targets
webpack可以针对多种环境进行编译打包