.gitignore没有按预期忽略文件

问题描述

我的文件结构是

node_modules/
build/
src/
    assets/
          js/
          css/
          images/
    index.html
    bundled.js  

.gitignore看起来像

node_modules
build
src/bundled.js   *this is not being ignored*

它将忽略node_modules并按预期进行构建。但是,请不要忽略src/

中的 bundle.js

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)