sasssingularitygs

how to install singularitygs using webpack


I'm new to webpack and I'm trying to install singularitygs to my sass file,

I did a npm install singularitygs --save-dev

but not really sure how to go about this any help would be appreciated


Solution

  • Use https://github.com/jtangelder/sass-loader built specifically for Webpack.

    It will let you import Singularity as

    @import "~singularitygs/stylesheets/singularitygs"
    

    Tilde for sass-loader means "import from node_modules".