node-sass-tilde-importer
A node-sass custom importer which turns ~ into absolute paths to the nearest parent node_modules directory.
Last updated 2 years ago by tadam313 .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-sass-tilde-importer 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.2                                ...           latest (2 years ago)
  • 2.0.0-alpha.1                                ...           next (a year ago)

9 Versions

  • 2.0.0-alpha.1                                ...           a year ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.0                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (2)
Downloads
Today 733
This Week 3,019
This Month 1,706
Last Day 973
Last Week 3,287
Last Month 16,476
Dependencies (1)
Dev Dependencies (1)
Dependents (78)

Copyright 2014 - 2016 © taobao.org |