node-sass-simple-css-importer

0.1.0 • Public • Published

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

/node-sass-simple-css-importer/

    Package Sidebar

    Install

    npm i node-sass-simple-css-importer

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    4.13 kB

    Total Files

    6

    Last publish

    Collaborators

    • jacob9230