SCSS autosuggestion when working with bootstrap and webpack

Hello,

 

I have problem with autocompletion of bopotstrap classes in Webpack + React + Bootstrap 4 + SCSS.

I have configured WebPack to include bootstrap with bootstrap-loader. This allows me to use sass classes inside my project, but I cannot acces autocompletion for bootstrap classes

Is there a way to show to WebStorm SCSS sources to autocomplete? If not, did anyone configured a project which works with these technologies and allows to use autocompletion?

3 comments
Comment actions Permalink

you need to include SCSS files in your HTML with a <link> tag to get the completion

0
Comment actions Permalink

in .html files, only those CSS classes/IDs that are available in local stylesheet files explicitly linked to HTML via <link> tag are available in completion.

We have a feature request for adding intellisense for selectors that aren't explicitly linked - https://youtrack.jetbrains.com/issue/WEB-17009. See also https://youtrack.jetbrains.com/issue/WEB-8090

 

0
Comment actions Permalink

I believe I got this to work by loading the bootstrap-sass gem in the load path of the module.

0

Please sign in to leave a comment.