irispixel / vscode-dartsass

VSCode plugin using dart sass compiler
https://irispixel.com
10 stars 3 forks source link

targetdirectory: Relative Directory to Current File #5

Open goesredy opened 4 years ago

goesredy commented 4 years ago

My SCSS directory tree (example):

Is there a way to make the watcher put compiled css in css folder ( relative file_path instead relative to project folder ) ? I don't think I can use directory relative to file_path, because only relative to project root is available.

akkumar commented 4 years ago

Sorry - at this moment - targetDirectory applies only relative to projectRoot.

The interpretation becomes more hazy if targetDirectory changes for every file depending on the location.

Can you specify assets\css as targetDirectory and would that help your case though ?

goesredy commented 4 years ago

@akkumar Yes, but if I work with multiple environment (eg. html and php app), this will need manual replace. But really big thanks if this will available in the future.

jeffglynn commented 2 years ago

Sure would be nice to be able to specify relative output path to the current file

developedsoftware commented 2 years ago

We have this exact same requirement!