Hướng dẫn cài đặt sử dụng scss sass trên ubuntu thành công bản 18.04 (ok) c

https://eggplant.pro/blog/building-sassscss-in-sublime-text-3

Câu lệnh gõ tắt là: CTRL + B

There are so many packages for building sass and scss files in Sublime Text 3, but I think a lot of them make it more complicated than it needs to be.

I prefer to use the official Sass compiler already on my system and just make a .sublime-build file for it.

Save this under your Sublime Text Packages/User folder as sass.sublime-build:

Bước 1: sudo apt install ruby-sass
Bước 2: Tools > Build System > New Build System>sass.sublime-build
{
   "file_regex": "^([^:]*):([0-9]*):.*$",
   "selector": "source.scss, source.sass",
   "cmd": [
      "/usr/bin/sass",
      "--unix-newlines",
      "--trace",
      "--style=compressed",
      "--default-encoding=UTF-8",
      "$file",
      "$file_path/$file_base_name.css"
   ]
}
Bước 3: Câu lệnh gõ tắt là: CTRL + B

Tren windows su dung cmd

https://rubyinstaller.org/downloads/
cmd

sass --watch scss:css gem install sass

sass ---watch scss:css

Oke tren windows

0. install plugin sass build
1. https://rubyinstaller.org/downloads/
2. gem install sass

Chay them: sass --watch scss:css
https://www.codementor.io/ricardozea/sass-for-beginners-the-friendliest-guide-about-installing-and-using-sass-on-windows-cjfs2id3o
https://www.codementor.io/ricardozea/sass-for-beginners-the-friendliest-guide-about-installing-and-using-sass-on-windows-cjfs2id3o

Last updated