craco-sass-resources-loader
/
1.1.2
craco-sass-resources-loader 1.1.2
Install from the command line:
Learn more about npm packages
$ npm install @little-core-labs/craco-sass-resources-loader@1.1.2
Install via package.json:
"@little-core-labs/craco-sass-resources-loader": "1.1.2"
About this version
This is a craco plugin to add sass-resources-loader with create-react-app version >= 2.
$ yarn add -D craco-sass-resources-loader
# OR
$ npm install craco-sass-resources-loader --save-dev
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'
],
},
},
],
}
Details
- craco-sass-resources-loader
- little-core-labs
- about 2 years ago
- MIT
- 13 dependencies
Assets
- craco-sass-resources-loader-1.1.2-npm.tgz
Download activity
- Total downloads 374
- Last 30 days 0
- Last week 0
- Today 0