JSPM

node-sass-tilde-importer

2.0.0-alpha.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 230061
  • Score
    100M100P100Q186932F
  • License Apache-2.0

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

Package Exports

  • node-sass-tilde-importer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-sass-tilde-importer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.