Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 707 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 707 Bytes

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(),
  ...
});