File Watchers in SCSS - output directory
Hi!
I have different scss files in different directory structures, like this:
component => folder1 => scss => file1.scss
component => folder2 => scss => file2.scss
And I would like to generate css to this folder structure:
media => folder1 => css => file1.css
media => folder2 => css => file2.css
I think I have to use MACROS but I can't find out how. Does anyone knows how to do it?
Regards.
Mike
请先登录再写评论。
I'm trying but even with -f as a parameter, I get this output: (MAC / Unix)
/bin/cp -f index.html
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory
Process finished with exit code 64
I'm trying but even with -f as a parameter, I get this output: (MAC / Unix)
/bin/cp -f index.html
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory
Process finished with exit code 64
I don't need npm to copy a file from one place to another if it is a regular html file right?
Wouldn't I use just a "cp" command as the "Program"?
Arguments: $FileName$
Output path to refresh: $ProjectFileDir$/public/$FileName$
I'm trying but even with -f as a parameter, I get this output: (MAC / Unix)
/bin/cp -f index.html
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory
Process finished with exit code 64
You didn't specify a target dir/file in Arguments
Looks as if there is some misunderstanding... the Output path to refresh: field just tells IDE what file to check when file watcher is finished running to synchronize its virtual file system with external changes. It is not a path that is passed to the program being run, all program arguments have to be configured in Arguments field
Your last comment really helped :)
For anyone following my final solution is:
Program: cp
Arguments: $FileDir$/$FileNameWithoutExtension$.html $ProjectFileDir$/public/$FileName$
(This points to an index.html file in this case but it's the open file I am editing in the "src" folder)
Output paths to refresh: $ProjectFileDir$/public/$FileName$
If I may say, although this way of doing things is very flexible, it's also not intuitive at all for us mortal folk :P