如何显示dist文件夹,而不显示node_modules?

时间:2018-12-23 17:07:13

标签: intellij-idea webstorm

我希望能够看到我的dist文件夹,但看不到node_modules

Settings > Directories中,Excluded按钮被锁定,因此我无法将dist文件夹设置为未标记。我该怎么做才能包含此文件夹?

enter image description here

1 个答案:

答案 0 :(得分:2)

您在项目中使用webpack吗? WebStorm自动将Webpack目标文件夹排除在索引之外,以提高性能。因此,如果您有病情。喜欢

$scope.user = {}; // in this object you are binding your data.

const hitApi = (data) => {
  $http.post('url', data)
  // send that data to backend using post method
   .then((response) => {
      console.log(response.data);
   });
});

在您的output : { path : path.join(__dirname, 'dist/') 中,webpack.config.js文件夹将被自动排除。

作为一种解决方法,尝试将webpack配置路径值(首选项|语言和框架| JavaScript | Webpack )设置为空字符串-应该会有所帮助。

通过在项目工具窗口中选择将目录标记为>取消排除来手动取消排除文件夹也可能有效