B
B
Bauss2016-12-06 23:02:52
css
Bauss, 2016-12-06 23:02:52

Webstorm doesn't see bootstrap variables, what should I do?

Installed bootstrap 4 via npm connected like this:

@import "../../node_modules/bootstrap/scss/bootstrap";

everything works fine, but when I try to use bootstrap variables, webstorm simply doesn’t see them, I then got into the bootstrap sources and looked at their names there and started using them, they work fine, but due to the fact that webstorm doesn’t see them, I have a bunch of yellow ones on the right hints (stripes).
How to make webstorm start to see these variables and they were in the tooltips, that is, so that I only write the dollar sign and it shows me a list of all variables?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
timfcsm, 2016-12-07
@timfcsm

which version? in 2016.1 there was a bug that variables were not pulled from npm sass modules .. in 2016.2 this was fixed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question