Answer the question
In order to leave comments, you need to log in
How to set up the import of styles from Bootstrap to Gulp?
Hello. The essence of the problem. When overriding Bootstrap styles, my task of compiling scss to Gulp can take 3 to 5 seconds. And it doesn't matter what file I'm working in - it takes a long time to compile (either I write my own styles separately, or I override some Bootstrap variables).
I solved a similar problem by creating 2 separate tasks in Gulp: one for working directly with Bootstrap (redefining variables - up to 1.5 s), the second task for working with other style files (up to 0.5 s). The output is 2 files: libs.min.css and style.min.css.
Question: does everyone have such a long compilation of bootstrap files, or is it just me that "smartly" set up my assembly? And are there any tips for a proper and optimized setup?
PS I did the import of bootstrap files as in the documentation (only the necessary ones), scss architecture: 7-1 .
Connection and work with bootstrap-files takes place in a separate folder vendors + add. files to override styles.
Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question