@atomic-reactor/node-sass-reactium-importer

1.0.0 • Public • Published

@atomic-reactor/node-sass-reactium-importer

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

Install

npm install --save-dev @atomic-reactor/node-sass-reactium-importer

Usage

var sass = require('node-sass');
var reactiumImporter = require('@atomic-reactor/node-sass-reactium-importer');

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

scss example

@import '+@atomic-reactor/toolkit/src/style/rtk';'
@import '~@atomic-reactor/reactium-ui/assets/style/reactium-ui';

node-sass cli example:

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

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

Package Sidebar

Install

npm i @atomic-reactor/node-sass-reactium-importer

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.85 kB

Total Files

5

Last publish

Collaborators

  • camdagr8
  • jdillick