Answer the question
In order to leave comments, you need to log in
(bootstrap version 3.3.1) how to configure less to css compilation?
Hello, I'm using bootstrap 3.3.1 and I want to use less to change styles in bootstrap 3.3.1, but I don't know how to set it all up to make it work. Please tell us everything in detail how to connect less.
Answer the question
In order to leave comments, you need to log in
1. Create a style.less file in which you import the necessary bootstrap files (let them be in a separate folder so as not to get confused). For example:
@import "bootstrap/less/variables.less"
@import "bootstrap/less/mixins.less"
@import "bootstrap/less/normalize.less"
@import "bootstrap/less/mixins.less"
@import "bootstrap/less/buttons.less"
// Bootstrap
@import "bootstrap/less/variables.less"
...
@import "bootstrap/less/buttons.less"
// Project Styles
@import "project.less"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question