Using libsass with compass

后端 未结 2 1169
半阙折子戏
半阙折子戏 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条回答
  •  猫巷女王i
    2020-12-31 04:40

    This is answer for sass files (not scss). Please always differentiate them

    1. Run in shell bower install compass-sass-mixins
    2. Edit your sass file @import "bower_components/compass-sass-mixins/lib/compass"

    or

    1. Run in shell npm i compass-sass-mixins
    2. Edit your sass file @import "node_modules/compass-sass-mixins/lib/compass"

    List of functions: https://github.com/askucher/compass-sass-mixins

提交回复
热议问题