网站搜索

javascript - Angular 2 如何忽略 .map.js 文件?


我想知道如何在 Angular 2 中忽略所有 .js.map 文件。在我的 .gitignore 文件中,我已经尝试了所有可能性,但仍然没有成功。

*.log
typings
src/app/**/*.js
src/app/**/*.map
node_modules
.idea/
src/app/**/**/*.map
src/app/*.map
src/app/**/*.js.map
src/app/**/*.js

答案#1

使用这些

**/*.map 
**/app/**/*.js