webpack 错误提示:Set 'mode' option to 'development' or 'production' to enable defaults for each environment
It has been 462 days since the last update, the content of the article may be outdated.
AI摘要
WXZGPT
生成中...
今天在学习 TypeScript 中,使用 webpack 打包时报一下错误:
上网查了一下资料,解决方案是在 webpack.config.js
配置文件中 添加:mode: 'development'
js
1 | module.exports = { |