How to compile Sass to CSS in Sublime Text 3 automatically?

后端 未结 3 2040
夕颜
夕颜 2020-12-19 14:03

For example, there is package for less LessToCss. As for Sass(or SCSS) I don\'t know what i should do. Ruby and sublime package Sass are in

3条回答
  •  情深已故
    2020-12-19 14:54

    here is 100% solution, as i also using. Actually i am using in mac so, i am not sure about windows because i wouldn't try yet in windows but i think it will works in window's too.

    so here is the build;

    copy this from starting brackets and paste it into build and then save with any name like (Build to CSS),"

    {
    
        "cmd": ["sass", "--update", "$file:${file_path}/../css/${file_base_name}.css", "--stop-on-error", "--no-cache"],
    
        "osx":
        {
            "path": "/user/local/bin:$PATH"
        },
    
        "windows":
        {
            "shell": true
        }
    }
    

    If it's working then please comment.

    Thanks

提交回复
热议问题