# grunt-sass-tilde-importer

> Resolves paths starting with ~ inside the node_modules directory

Latest version **1.0.2** (published 2016-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-sass-tilde-importer
pnpm add grunt-sass-tilde-importer
yarn add grunt-sass-tilde-importer
bun add grunt-sass-tilde-importer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-05-30 |
| First published | 2016-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Stefan Neubert |
| Maintainers | steditor |
| Keywords | grunt-sass, tilde, node_modules, scss, sass, importer |

## Links

- npm: https://www.npmjs.com/package/grunt-sass-tilde-importer
- Repository: https://github.com/Steditor/grunt-sass-tilde-importer
- Homepage: https://github.com/Steditor/grunt-sass-tilde-importer#readme
- Issues: https://github.com/Steditor/grunt-sass-tilde-importer/issues
- npm.io page: https://npm.io/package/grunt-sass-tilde-importer

## Recent versions

- 1.0.2 (latest) — 2016-05-30
- 1.0.1 — 2016-05-30
- 1.0.0 — 2016-05-30

## 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](https://github.com/sass/node-sass) via [grunt-sass](https://github.com/sindresorhus/grunt-sass).

### What you would like to write

```scss
@import '~module_name/stylesheet';
```
e.g.
```scss
@import '~bootstrap-sass/assets/stylesheets/_bootstrap';
```
with the [bootstrap sass](https://github.com/twbs/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](https://github.com/sindresorhus/grunt-sass)-configuration.

Thanks go to [Dominic Tobias](http://stackoverflow.com/a/37118406/1606867) who suggested this solution.

---
_Source: https://npm.io/package/grunt-sass-tilde-importer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
