Search code examples
sassionic2compass-sasscompass

include Compass in compiling SASS in Ionic framework?


Does anybody knows how to include compass in an Ionic 2 project?

I have tried to import compass-sass, but I can't find a path to set the compass preprocessing in my styles.


Solution

  • As pointed by this stackoverflow answer use this Compass lib

    How i implemented in my Ionic 2+ project.

    • Installed via npm - npm install compass-sass-mixins
    • Imported to my project by adding @import "../../node_modules/compass-sass-mixins/lib/compass"; in file app.scss
    • Then run ionic serve

    Hope this helps to implement useful mixins