Instead of including all bootstrap.less, copy his content to your app.less and import your own variables.less after bootsrap vars, but before modules:@bootrap-dir: "bower_components/bootstrap/less";@import "@{bootrap-dir}/variables.less";@import "your-variables.less";@import "@{bootrap-dir}/mixins.less";@import "your-mixins.less";//...以后,您只能加载所需的模块.Later, you can load only the modules you need. 这篇关于在不触及Bower的情况下覆盖Bootstrap变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-29 14:22