Reputation: 213
I just learned some sass using codecademy.com
, and I have no idea how to "compile" my main.scss
file to my main.css
file. Does anyone know how I can do this with Notepad++ and/or Sublime Text as my text editor(s)?
Upvotes: 2
Views: 3719
Reputation: 860
There are three options:
As another person mentioned you can use a text-editor built in with Sass-builder as one of the options. This is the easiest option. You might still need to install Ruby to get it to work tough.
You can use a Pre-processor such as Gulp or Grunt to do it for you. I recommend Gulp for beginners.
You can do it manually by downloading SASS via Ruby package manager:
"gem install sass"
to have sass installed.sass --watch "yoursassdirectory"/style.scss : "yourcssdirectory"/style.css
Upvotes: 2
Reputation: 167182
You need the SASS Pre-Processor to compile SASS into CSS. You should either use Compass or SASS to compile. When doing development on your project, you can run the compass watcher to keep your CSS files up to date as changes are made.
$ cd /path/to/project
$ compass watch
Compiling Sass into CSS in Sublime Text is possible with a plugin called SassBuilder, which you can install through Package Control (see screenshot).
BTW, a quick question. main.scss
to main.sass
or main.css
?
Upvotes: 6