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!!!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay