0

hy

I've just installed yeoman and generator-angular. everything works like expected, but changes in bower_components/bootstrap-sass-official/vendor/assets/stylesheets/* won't be caught in grunt watch or grunt serve tasks. it's my first contact with bower and yeoman and I hope that this can be solved easily.

bootstrap.scss (imports all bootstrap scss files) is included in app/styles/main.scss witch will be converted to main.css in grunt watch task.

thank you for your help!

4

1 回答 1

1

很简单 - 只需在 Gruntfile.js 中添加这些文件来观察任务。

但这完全是个坏主意-您不应该编辑目录下的bower_components文件。

这些文件应该使用 bower 进行管理,它们甚至不被 git 跟踪,也不应该被跟踪(默认情况下 bower_components 在这个生成器的 gitingore 中)。

如果您需要覆盖某些内容:导入原始 scss 文件,并覆盖您需要的内容。

于 2014-06-12T22:12:40.977 回答