Mohmmad Ebrahimi Aval
Mohmmad Ebrahimi Aval

Reputation: 482

How to write custom output path in PhpStorm file watcher

My scss file is in project/repo/style/home/index.scss and want save compiled css file in project/repo/dist/style/home/index.css but can not find any good solution.

How to do that?

Upvotes: 0

Views: 823

Answers (1)

Mohmmad Ebrahimi Aval
Mohmmad Ebrahimi Aval

Reputation: 482

i found answer: after install ruby and sass need restart system.

Webstorm is configured with the following parameters:

Program: /usr/bin/sass
Arguments: --no-cache --style compressed --update --sourcemap=none $FileName$:$ProjectFileDir$/repo/Style/$FileDirPathFromParent(Style)$/$FileNameWithoutExtension$.min.css
Working directory: $FileDir$
Output path:$ProjectFileDir$/repo/Style/$FileDirPathFromParent(Style)$/$FileNameWithoutExtension$.css

Upvotes: 1

Related Questions