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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    582
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    582
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i grunt-sass-tilde-importer

Weekly Downloads

294

Version

1.0.2

License

MIT

Last publish

Collaborators

  • steditor