Skip to content

fetch/node-sass-css-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Sass CSS importer Build Status npmjs

The Node Sass CSS Importer allows you to import a CSS file into Sass. Just like the Sass CSS importer.

Stylesheet Syntax

The .css extension triggers special behavior in Sass so you cannot import a file with a CSS extension. To work around this, you must use a special prefix on the import string and omit the extension.

@import "CSS:some_folder/some_css_file"

Installation

npm install node-sass-css-importer --save[-dev]

Usage

var sass = require('node-sass')
  , CssImporter = require('node-sass-css-importer')({
      import_paths: ['app/assets/stylesheets', 'app/assets/components']
    });

sass.renderSync({
  file: 'source.scss',
  importer: [CssImporter]
});