1.0.2 • Published 9 years ago
grunt-sass-tilde-importer v1.0.2
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.