1.1.4 • Published 6 months ago

@forsakringskassan/sass-module-importer v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@forsakringskassan/sass-module-importer

Import sass files from packages in node_modules/, works with and without webpack (~)-prefix.

@import "@fkui/design/fil.scss";
@import "~@fkui/design/anotherFile";

This plugin can also be used to include Sass files from a library's main or exports field.

Installation

npm install --save-dev @forsakringskassan/sass-module-importer

Usage (esm only)

In your sass compile script, add the importer:

import { compileStringAsync } from "sass";
import { moduleImporter } from "@forsakringskassan/sass-module-importer";

const result = await compileStringAsync(mySCSS, {
    importers: [moduleImporter],
});
1.1.4

6 months ago

1.1.3

7 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.1

9 months ago

1.0.0

10 months ago