Satyajit Roy
Satyajit Roy

Reputation: 547

How to create css file form sass file in the same directory

I am learning SASS. I am using VS Code as my code editor. I have installed Live SASS Compiler extension to compile SASS file.

I have created a folder. In this folder I have multiple folders. I want to create css file in each folder not main folder.

Check the image: enter image description here

In SCSS folder there is a folder named "Partials-and-Imports". I want to create the css folder in the "Partials-and-Imports" folder not in main folder(CSS) because I have to create multiple folders in the main folder.

How can I do that?

Upvotes: 0

Views: 1484

Answers (1)

Ahmed
Ahmed

Reputation: 226

Just copy and past this block of code in your sass compiler setting - Set your exported CSS Styles, Formats & save location - :)

  "liveSassCompile.settings.formats": [

    {
      "format": "expanded",
      "extensionName": ".css",
      "savePath": "~/../css/"
    }
  ]

Upvotes: 2

Related Questions