Never Publish Malarkey

npm

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

node-sass-tilde-importer

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.

install

npm i node-sass-tilde-importer

Downloadsweekly downloads

208,799

version

1.0.2

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability