Using libsass with compass

后端 未结 2 1167
半阙折子戏
半阙折子戏 2020-12-31 03:59

Exactly as the title says. Compilation times over 50 seconds are unacceptable. So, is there a way, let\'s say: a single (partial) file with compass magic (like sprite mixins

2条回答
  •  无人及你
    2020-12-31 04:43

    In our case (>100.000 LoCSS), we succesfully moved from grunt-contrib-compass to a combination of

    grunt-sass

    which is using libsass instead of the ruby version, and to get all the magic from compass, we included

    compass-mixins

    and it worked just fine. You should definitely try it out, we reduced our compilation time from more than 40sec down to just 500-600ms.


    UPDATE 2

    Here's a node module that automagically imports the lib mentioned above into your grunt enviroment:

    https://github.com/haithembelhaj/compass-importer

    UPDATE

    Creating a port to libsass is clearly on the creators mind: https://github.com/Compass/compass/issues/1916

提交回复
热议问题