node-sass-tilde-importer
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/node-sass-tilde-importer package

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i node-sass-tilde-importer

Weekly Downloads

113,002

Version

1.0.2

License

Apache-2.0

Unpacked Size

13.9 kB

Total Files

5

Last publish

Collaborators

  • mattface
  • tadam313