sass-resources-loader-craco

1.0.0 • Public • Published

Craco sass-resources-loader

Forked from https://github.com/tilap/craco-sass-resources-loader

MIT License

This is a craco plugin to add sass-resources-loader with create-react-app version >= 2.

Installation

$ yarn add -D craco-sass-resources-loader

# OR

$ npm install craco-sass-resources-loader --save-dev

Usage

craco-sass-resources-loader expect a resources option containing a string or an array of string pointing the scss files your want to load before any scss/sass file.

const sassResourcesLoader = require('craco-sass-resources-loader');

module.exports = {
  plugins: [
    {
      plugin: sassResourcesLoader,
      options: {
        resources: './src/my-config-theme.scss',
      },
    },
  ],
}

You can load multiple scss resources files too:

const sassResourcesLoader = require('craco-sass-resources-loader');

module.exports = {
  plugins: [
    {
      plugin: sassResourcesLoader,
      options: {
        resources: [
          './src/my-config-theme.scss',
          './src/my-other-config-theme.scss'
        ],
      },
    },
  ],
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00

Package Sidebar

Install

npm i sass-resources-loader-craco

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.03 kB

Total Files

5

Last publish

Collaborators

  • j3k2