I have been struggling to properly integrate Bootstrap into my LESS file.
Currently, I am adding Bootstrap to my project using NPM. If I simply use the following import statement in my LESS file:
@import (reference) 'node_modules/bootstrap/less/bootstrap';
This approach allows me to access Bootstrap variables. In theory, since it is a reference import, my LESS file should compile correctly without including any additional content from Bootstrap.
However, the compilation includes a lengthy block of CSS rules like the one shown below:
[CSS rules example]
...
Is there a way for me to reference the Bootstrap file without having these unwanted CSS rules added to my LESS file?