How to keep Twitter Bootstrap customization with Bower? -
i'm working in project yeoman includes grunt automation , bower client-side package management. 1 of dependencies of project sass twitter-bootstrap.
in other projects, in manually managed updates of dependencies, changed bootstrap values directly in bootstrap variables.less (_variables.scss) file , extend in main.less files under project own css folder. did same here, when installed other packages bower overrode (i "un-.gitignored" components' folder, god)
what's best way customize bootstrap outside components' folder won't happen again?
you should never modify contents of bower_components folder. we'll make sure make clearer.
as question. copy _variables.scss file bower_components folder eg. app/styles, import main.scss, or whatever it's named, above import statement bootstrap. result in custom file overriding default variables.
Comments
Post a Comment