Skip to content

JacobDB/node-sass-simple-css-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-sass-simple-css-importer

A simple custom importer to get around the deprecation of importing .css files in LibSass.

In early 2018, LibSass deprecated importing files ending in .css, suggesting to instead use a custom importer (see sass/node-sass#2362). This is problematic because we have no control over what file types third-party packages provide. This module functions as a simple custom importer for .css files for use with node-sass.

Usage

const SASS         = require("node-sass");
const CSS_IMPORTER = require("node-sass-simple-css-importer");

sass.render({
  ...
  importer: CSS_IMPORTER(),
  ...
});

About

Custom importer for node-sass which imports .css files without complaining.

Resources

License

Stars

Watchers

Forks

Packages

No packages published