Gathering detailed insights and metrics for grunt-sass
Gathering detailed insights and metrics for grunt-sass
Gathering detailed insights and metrics for grunt-sass
Gathering detailed insights and metrics for grunt-sass
npm install grunt-sass
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
1,013 Stars
174 Commits
211 Forks
43 Watching
1 Branches
24 Contributors
Updated on 12 Oct 2024
JavaScript (91.28%)
CSS (8.72%)
Cumulative downloads
Total Downloads
Last day
-9.3%
24,848
Compared to previous day
Last week
-2.3%
148,858
Compared to previous week
Last month
-1.6%
668,477
Compared to previous month
Last year
25.6%
8,337,355
Compared to previous year
1
6
Before filing an issue with this repository, please consider:
Asking support questions on Use Stack Overflow.
Reporting issues with the output on the Dart Sass or LibSass issue trackers, depending which implementation you're using.
Reporting installation issues on the Dart Sass or Node Sass issue trackers, depending on which implementation you're using.
$ npm install --save-dev node-sass grunt-sass
1const sass = require('node-sass'); 2 3require('load-grunt-tasks')(grunt); 4 5grunt.initConfig({ 6 sass: { 7 options: { 8 implementation: sass, 9 sourceMap: true 10 }, 11 dist: { 12 files: { 13 'main.css': 'main.scss' 14 } 15 } 16 } 17}); 18 19grunt.registerTask('default', ['sass']);
You can choose whether to use Dart Sass or Node Sass by passing the module to the implementation
option. One implementation or the other must be passed.
Note that when using Dart Sass, synchronous compilation is twice as fast as asynchronous compilation by default, due to the overhead of asynchronous callbacks. To avoid this overhead, you can use the fibers
package to call asynchronous importers from the synchronous code path. To enable this, pass the Fiber
class to the fiber
option:
1const Fiber = require('fibers'); 2const sass = require('sass'); 3 4require('load-grunt-tasks')(grunt); 5 6grunt.initConfig({ 7 sass: { 8 options: { 9 implementation: sass, 10 fiber: Fiber, 11 sourceMap: true 12 }, 13 dist: { 14 files: { 15 'main.css': 'main.scss' 16 } 17 } 18 } 19}); 20 21grunt.registerTask('default', ['sass']);
Files starting with _
are ignored to match the expected Sass partial behaviour.
See the Node Sass options, except for file
, outFile
, success
, error
.
The default value for the precision
option is 10
, so you don't have to change it when using Bootstrap.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 6/30 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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