webstorm下怎么删除整个项目中typescript编译出的js和jsmap文件?

webstorm下怎么删除整个项目中typescript编译出的js和jsmap文件?

阅读 9.5k
1 个回答

如果你没有使用webstorm内置的Typescript编译器, 而是直接使用angular 2 的npm start,angular会帮你把typescript都编译好了,所以其他的方法都不管用。 你可以在Webstorm中配置"Project" 面板,

  1. Project Files section of the side panel (Project section does not offer the needed config menu) clipboard.png

  2. Click on the gear icon to configure enter image description here

  3. Select "Edit Scopes" from that menu

  4. Add a new Scope

  5. Set the Pattern to an appropriate filter to exclude the .js and .js.map files (I am using !file[my-root-folder]:app//.js&&!file[my-root-folder]:app//.js.map)
    You can select this scope as a section of the side panel (instead of Project or Project Files) under the name you set the scope.

See more information: http://stackoverflow.com/ques...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题