sass-importer-npm
Import Sass files installed through npm packages using node-sass importer option. Works with gulp-sass and webpack!
Created for our awesome AdminPlus Lite Bootstrap Admin Template.
Basic usage
The following example is using gulp and gulp-sass, but could be used just as easily with node-sass directly and webpack or other build tools. The main thing to note is how we're passing the importer option to node-sass.
Prerequisite
Make sure you have gulp installed globally. If not, run
npm install -g gulp
Setup
npm install sass-importer-npm gulp gulp-sass
Something to import
Next, we'll use Bootstrap just for the sake of the example.
npm install bootstrap@v4.0.0-alpha.2
sass/style.scss
// That's it!
gulpfile.js
var gulp = ;var sass = ;var importer = ; gulp;
Run!
gulp sass