Thomas Leduc
Thomas Leduc

Reputation: 1102

PHPStorm - SCSS file Watcher

I just have a big problem beginning with scss stuff. I have already install scss and add it to phpstorm as a "file watcher". Until there I was in a peacefull world but I tried to add a partials (file begining with a "_" which are included in the main file style.scss).

I want when I change the scss/style.scss OR partials/_variables.scss that the css/style.css updated.

So my problem is : When I change and save the style.scss file is ok, but when I change the _variables.scss, the style.css still the same.

Is there any way to WATCH the _variables.scss and generate automatically the main file if it's changed ?

I've already played with the scope of file watchers, but no way to do it ...

css/
    style.css
partials/
    _variables.scss
scss/
    style.scss

Upvotes: 1

Views: 1262

Answers (1)

Thomas Leduc
Thomas Leduc

Reputation: 1102

Thank you @feeela,

I have my answer :

Change listen all the changing scss, and generate the style.scss each time via

--no-cache --update $ProjectFileDir$/scss/style.scss:$ProjectFileDir$/css/style.css

So the partials are listened but only the style.css is generated. :)

Upvotes: 2

Related Questions