Gathering detailed insights and metrics for craco-plugin-style-resources-loader
Gathering detailed insights and metrics for craco-plugin-style-resources-loader
Gathering detailed insights and metrics for craco-plugin-style-resources-loader
Gathering detailed insights and metrics for craco-plugin-style-resources-loader
npm install craco-plugin-style-resources-loader
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
10,783
Last Day
1
Last Week
20
Last Month
91
Last Year
1,350
MIT License
4 Stars
19 Commits
2 Watchers
1 Branches
2 Contributors
Updated on May 05, 2022
Minified
Minified + Gzipped
Latest Version
0.0.3
Package Id
craco-plugin-style-resources-loader@0.0.3
Unpacked Size
56.70 kB
Size
46.09 kB
File Count
6
NPM Version
6.14.4
Node Version
14.4.0
Cumulative downloads
Total Downloads
Last Day
-50%
1
Compared to previous day
Last Week
53.8%
20
Compared to previous week
Last Month
18.2%
91
Compared to previous month
Last Year
43%
1,350
Compared to previous year
1
2
If you want to automatically import files (for colors, variables, mixins...) in you project, you can use the craco-plugin-style-resources-loader
. in fact introduce css global variables is useful in you project.
This is a craco plugin to add Style Resources Loader with create-react-app version >= 2.
Inspired by: craco-sass-resources-loader 、 craco-style-resources-loader and vue-cli Working with CSS
Add style-resources-loader to your react project easier.
1$ yarn add -D craco-plugin-style-resources-loader 2 3# OR 4 5$ npm install craco-plugin-style-resources-loader --save-dev
craco-plugin-style-resources-loader
expect a resources
option containing a string or an array of
string pointing the scss/sass/css/less
files your want to load before any scss/sass/css/less
file.
e.g. use less processor
If you only use one less resources file,in craco.config.js
file, you need to use this:
1const cracoPluginStyleResourcesLoader = require('craco-plugin-style-resources-loader'); 2const path = require('path'); 3 4module.exports = { 5 plugin: cracoLessResourcesLoader, 6 options: { 7 patterns: path.join(__dirname, 'src/less/common.less'), 8 /* 9 Please enter supported CSS processor type 10 1. if u use css processor,please type css string 11 2. if u use less processor,please type less string 12 3. if u use sass or scss processor,please type sass or scss string,Choose one of the two 13 4. if u use stylus processor,please type stylus string 14 */ 15 styleType: 'less' 16 } 17};
You can load multiple scss/sass/css/less
resources files too:
1const cracoPluginStyleResourcesLoader = require('craco-plugin-style-resources-loader'); 2const path = require('path'); 3 4module.exports = { 5 plugin: cracoLessResourcesLoader, 6 options: { 7 patterns: [ 8 path.join(__dirname, 'src/less/common.less'), 9 path.join(__dirname, 'src/less/global.less') 10 ], 11 /* 12 Please enter supported CSS processor type 13 1. if u use css processor,please type css string 14 2. if u use less processor,please type less string 15 3. if u use sass or scss processor,please type sass or scss string,Choose one of the two 16 4. if u use stylus processor,please type stylus string 17 */ 18 styleType: 'less' 19 } 20};
Learn more about the configuration of options ,Please click on the link 👉 style-resources-loader
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/19 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-03-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More