Novice, Practiced, Mastered

npm

Need private packages and team management tools?Check out npm Orgs. »

grunt-sass-tilde-importer

1.0.2 • Public • Published

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.

install

npm i grunt-sass-tilde-importer

Downloadsweekly downloads

875

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability