11

I am deploying my documents automatically to the server.

When I save my .less / .sass files, the File Watcher transpiles them, but only uploads the source files, not the transpiled .css file.

Is there a way that the .css file is also being deployed?

1 Answer 1

23

Make sure to tick the 'Upload external changes' checkbox in Deployment/Options. This option makes PHPStorm upload the files changed by a third-party tool (LESS compiler in your case). See http://www.jetbrains.com/webstorm/webhelp/deployment.html and related topics for more info

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

8 Comments

I never peeked into 'Options' before, thank you for the hint!
Does anyone else have the issue where they have to lose and regain focus of phpStorm for the external changes to be detected by phpstorm, and henceforth uploaded?
do you use a file watcher to compile .less? Usually such problems indicate configuration issues: 'output paths to refresh' file watcher option is not set up correctly, so that the generated files don't appear in PHPStorm virtual file system until it's synchronized with external changes (that usually happens when you move focus back to the IDE)
And now I understand what that checkbox is for. Thanks!
Caution! This can cause serious problems when you use git! If you change the current branch, all the files that changed will be uploaded because they are "external changes"! So you lose the posibility of switching between live/dev-branches. There must be another way...
|

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.