1.0.2 • Published 5 years ago

node-sass-tilde-importer v1.0.2

Weekly downloads
397,761
License
Apache-2.0
Repository
github
Last release
5 years ago

node-sass-tilde-importer

A node-sass custom importer which turns ~ into absolute paths to the nearest parent node_modules directory.

Build Status npm version

Install

npm install node-sass-tilde-importer --save-dev

Usage

var sass = require('node-sass');
var tildeImporter = require('node-sass-tilde-importer');

var result = sass.renderSync({
  data: scss_content,
  importer: tildeImporter
});

node-sass cli example:

node-sass style.scss --importer=node_modules/node-sass-tilde-importer

Please refer to the node-sass readme for full instruction on how to use custom importers.

2.0.0-alpha.1

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago