25
loading...
This website collects cookies to deliver better user experience
dist
folder that holds my index.html, image files, and any JavaScript files I may have. This is considered my distribution file, and if someone wanted to deploy the website, they could just use that folder to deploy without all that extra SCSS stuff to get in the way.dist
. You can name it whatever you want, but this is the name I use.Also within your project folder, create another one called scss
. This will house all of your SCSS files.
It should look a little something like this:
Next step is installing node.js...
node --version
. You should see a version number returned.npm install -g sass
. This will install it globally on your machine.cd <filepath>
. So if your project was on your desktop, you can do cd \desktop\my_project
and you will be brought to your project.sass /scss/main.scss dist/css/main.css
. This will build and compile your SCSS files. Just run that command every time you want to compile!dist
folderscss
foldernpm install -g sass
to install SASS globally.sass /scss/main.scss dist/css/main.css
. This will build and compile your SCSS files. Just run that command every time you want to compile!