0.1.0 • Published 6 years ago

node-sass-simple-css-importer v0.1.0

Weekly downloads
10
License
MIT
Repository
github
Last release
6 years ago

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