运行webpack4.* 打包报错:The ‘mode’ option has not been set
打包报如下错误:The‘mode’optionhasnotbeenset,webpackwillfallbackto‘production’forthisvalue.Set‘mode’optionto‘development’or‘production’toenabledefaultsforeachenvironment.解决:配置如下{"name":"public","version":"1.0