DEV Community

Cover image for How to Create A SASS Environment From Your Locals Without npm
Opeyemi Akintunde
Opeyemi Akintunde

Posted on

How to Create A SASS Environment From Your Locals Without npm

Have you always thought of implementing a Sass environment in your project but been getting confused as a result of countless tutorials made available online?

Don’t sweat over it anymore as this short piece offers only the relevant secrets on how to navigate your way through it even without the guidance of anyone.

  1. Click to open your IDE (will be using Visual Studio Code for this guide)

Image description

  1. Hover your mouse on “Extension” feature, then click on it.

Image description

  1. In the search bar, insert and install both “Live Server,” and “Live Sass Compiler” extensions

Image description

3i. Install “Live Server” extension

Image description

3ii. Install “Live Sass Compiler”

Image description

  1. Navigate through “Setting” icon

Image description

  1. Type “Sass” in the search bar

Image description

  1. After typing “Sass,” click on “Live Sass Compiler” from the left column.

Image description

  1. Drag your mouse, and navigate through “format,” then click to edit the json file.

Image description

7i. Your next screen would look like this

Image description

7ii. Make a little modification here

Image description

7iii. Change savePath value of ‘null’ to “/css” as this would totally change the initial file path.

Image description

P.S. Failure to change the path would not allow a CSS folder to be created automatically upon the compilation of your .scss file.

Literally, it would look like this.

Image description

  1. Press “ctrl + s” to save the file.

Now, it’s high time to create a new folder so as to test out if the SASS environment is fully up and running or not.

  1. Create and open a newly created folder of a new project

Image description

  1. Create the following inside the folder;

10i. An index.html file

Image description

10ii. A folder that would house a .scss file

Image description

  1. From the .scss folder, create a .scss file where all CSS styles would be written and documented.

Image description

  1. You would notice that immediately after you had created the .scss file, a prompt showing “Watch Sass” is being popped out. From here, you can easily monitor your Sass environment.

Image description

  1. And Voila, a new CSS folder would automatically be created alongside its file (.css) and map (.css.map) after you click “Watch Sass.”

Image description

This completes this simple and useful guide.
Kindly do not hesitate to drop a message if you have any further inquires or contact via (www.twitter.com/_desglobe)

Thank you for reading; Happy coding!!!

Top comments (0)