angular2网页包未解析变量webstorm
我正在尝试在我的angular2项目上安装Webpack 一切正常,但webstorm在我的webpack.config.ts文件中检测未解析的变量。 以下是代码的一部分:angular2网页包未解析变量webstorm,angular,webpack,webpack-dev-server,Angular,Webpack,Webpack Dev Server,我正在尝试在我的angular2项目上安装Webpack 一切正常,但webstorm在我的webpack.config.ts文件中检测未解析的变量。 以下是代码的一部分: module.exports = function makeWebpackConfig() { var config = {}; if (isProd) { config.devtool = 'source-map'; } else if (isTest) { config.devtool = 'inl
module.exports = function makeWebpackConfig() {
var config = {};
if (isProd) {
config.devtool = 'source-map';
}
else if (isTest) {
config.devtool = 'inline-source-map';
}
else {
config.devtool = 'eval-source-map';
}
devtool是webstorm的未解析变量。我不知道为什么。
我在该文件中有相同的问题:
config.entry
config.output
config.module
config.resolve
config.plugins
config.devServer
但该项目正在发挥作用。谢谢你的帮助