【发布时间】:2022-01-09 05:01:41
【问题描述】:
我的webpack.config.ts有这个:
import * as webpack from 'webpack'
module.exports = (env, argv): webpack.Configuration => {
return {};
}
但我不清楚应该为 env 和 argv 使用什么类型。
我在 Webpack 文档、网络上的任何地方或我的代码编辑器建议中都找不到答案,而且我无法理解 webpack 输入文件。越接近the Configuration Types of the webpack documentation中的描述,具体是什么类型就不清楚了。
【问题讨论】:
标签: typescript webpack typescript-generics