How to keep Twitter Bootstrap customization with Bower?

后端 未结 1 418
时光取名叫无心
时光取名叫无心 2020-12-23 14:35

I\'m working in a project with yeoman which includes grunt for automation and bower for client-side package management. One of the dependencies of my project is SASS twitter

1条回答
  •  有刺的猬
    2020-12-23 14:52

    You should never modify the contents of the bower_components folder. We'll make sure to make that clearer.

    As for your question. Copy the _variables.scss file from the bower_components folder to eg. app/styles, then import it into your main.scss, or whatever it's named, above the import statement for bootstrap. This will result in your custom file overriding the default variables.

    0 讨论(0)
提交回复
热议问题