resolve-sass-import
resolve sass import
Last updated 5 years ago by clarkxia .
MIT · Original npm · Tarball · package.json
$ npm install resolve-sass-import 
SYNC missed versions from official npm registry.

resolve-sass-import

resolve sass import statement, get sass import content in a single file

Install

npm install resolve-sass-import --save

Usage

const resolveSassImport = require('resolve-sass-import');
const sassContent = resolveSassImport('main.scss', path.resolve(process.cwd(), 'src'));

Example

variables1.scss

@color-1: #fff;

variables2.scss

@color-2: #000;

main.scss

@import './variables1.scss';
@import './variables2.scss';
const sassContent = resolveSassImport('main.scss', './'));

// sassContent will log:
// @color-1: #fff;
// @color-2: #000;

Current Tags

  • 0.1.1                                ...           latest (5 years ago)

2 Versions

  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE