2

I have a folder with multiple projects, each project has its own folder.

The structure is like this:

project 1
project 2
... 
project n
dist 
sass 
index.html

Each project consists of a dist and sass folder.

The problem is, when I compile a Sass file for one project, all of my Sass files are compiled into main.css, inside the dist folder.


Folder Structure:

Folder structure image


Compiler Output:

VS Code live sass compiler output

Gama11
  • 31,714
  • 9
  • 78
  • 100
  • Did you try to configure Live Sass Compiler? [Here is the doc.](https://github.com/ritwickdey/vscode-live-sass-compiler/blob/master/docs/settings.md) – Arkellys Nov 01 '20 at 07:58
  • Yes I changed savePath to "/dist/css" – SassCrafter Nov 01 '20 at 09:40
  • Hu.. I'm not sure to understand your problem then? – Arkellys Nov 01 '20 at 09:42
  • The problem is that I have a folder with different projects and most of them use scss. When root folder opend in vs code all projects main.scss files are compiled into one css file located in root/dist/css instead of root/project/dist/css. Thanks for your time, stay safe :) – SassCrafter Nov 06 '20 at 13:21
  • 1
    Ahh I see, I think you should use a path relative to your sass files and not to root in your config. So it should be something like `~/../dist/css` – Arkellys Nov 06 '20 at 14:01
  • Thanks, I’ll check that out ;) – SassCrafter Nov 07 '20 at 08:57

0 Answers0