grunt-sass-tilde-importer

Resolves paths starting with ~ inside the node_modules directory

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
grunt-sass-tilde-importer
1.0.27 years ago7 years agoMinified + gzip package size for grunt-sass-tilde-importer in KB

Readme

Grunt Sass Tilde Importer

What you want to do

Import sass-stylesheets from a node module inside your application's scss file when using node-sass via grunt-sass.

What you would like to write

@import '~module_name/stylesheet';
e.g.
@import '~bootstrap-sass/assets/stylesheets/_bootstrap';
with the bootstrap sass module.

What you have to do

Install this module with npm install --save-dev grunt-sass-tilde-importer and update your Gruntfile:
Require the module with tilde_importer = require('grunt-sass-tilde-importer'); and add importer: tilde_importer to the options of your grunt-sass-configuration.
Thanks go to Dominic Tobias who suggested this solution.