Reputation: 113
I have a project where in the public
directory, there is a scss
and a css
directory.
When I modify my scss
files, they are compiled as css
inside the correct directory. The problem I am getting is I can't manage to generate the source file associated with it.
Here is my PhpStorm File Watcher config :
Here is the result I expect : (the coding.css
file is the one I generated, the claim.css
and claim.css.map
are what I want.
From what I understood, Sass should generate a source map file by default, but I am not getting source map files.
Upvotes: 1
Views: 398
Reputation: 113
Thanks to @LazyOne for the answer.
It turns out I was only missing --source-map true
in the arguments. Adding it generated the source map file I wanted.
Also, as LazyOne pointed out, my "Outputs to Refresh" was not correct. I needed it to point to the directory my files were generated.
For my config, it is $ProjectFileDir$/public/css/
.
Upvotes: 1