1

I'm trying to setup a file watcher in PyCharm for my SASS files. I've followed the official guide and it worked jsut fine (https://www.jetbrains.com/help/pycharm/transpiling-sass-less-and-scss-to-css.html#)

Now I'd like to change the destination of the compiled CSS files to a specific folder, relative to the SASS file. Basically, the output directory should be ../css/ when starting from the SASS file, because my structure looks like this:

app1/
    static/
        css/
            myfile.css
        sass/
            myfile.sass
app2/
    static/
        css/
            myfile2.css
        sass/
            myfile2.sass

I'm not sure I understand what values I should put in arguments and output paths to refresh. I'm currently using the default settings (https://i.sstatic.net/JR4zh.jpg)

1 Answer 1

4

I solved it. For anyone struggling with the same issue, here's how I fixed it:

  • Arguments = sass\$FileName$:css\$FileNameWithoutExtension$.css
  • Output = css\$FileNameWithoutExtension$.css
  • Working Directory = $FileParentDir$

Here's an image of the setup :

File watcher Sass setup

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.