Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
broccoli-ruby-sass
Advanced tools
Broccoli plugin that compiles Sass using the Ruby-based compiler
npm install --save-dev broccoli-ruby-sass
var compileRubySass = require('broccoli-ruby-sass');
compileRubySass('styles', 'main.scss', 'main.css', {
imagePath: 'someImagePath',
style: 'nested',
sourceComments: true,
sourcemap: 'none',
bundleExec: true,
require: 'someRubyThingToRequire',
compass: true,
loadPath: 'load path'
});
These can be passed in the options object as the last argument to the Broccoli Ruby Sass plugin.
Type: string
Represents the public image path. When using the image-url() function in a stylesheet,
this path will be prepended to the path you supply. Example: Given an imagePath of
/path/to/images
, background-image: image-url('image.png')
will compile to
background-image: url("/path/to/images/image.png")
.
Thanks grunt-sass for that description!
Type: string Default: 'nested' Values: 'nested', 'compressed', 'expanded'.
Type: string Default: 'none'
Configuration settings for outputting sourcemaps.
Type: boolean Default: true
Print out comments in the compiled CSS that tell you the original line of the source.
Type: string
Require a ruby library before running the SASS compiler. By default, requires no ruby library. ``
Type: boolean
Use compass mixins , will be passed as --compass
to sass arguments.
Type: boolean Default: false
Use bundler when running ruby. Useful for locking down the ruby version between projects.
Type: string Default: ''
Type: boolean default: true on *nix (Mac OSX, Linux, FreeBSD, etc), false on windows
Use unix style newlines in output.
Type: Number Default: 5
How many digits of precision to use when outputting decimal numbers.
An string of filesystem path or importers which should be searched for Sass templates imported with the @import directive.
Type: Array Default: []
Custom arguments that don't have a value, such as --compass
and friends.
Type: string default: .sass-cache
Place to put the sass cache files.
FAQs
Broccoli plugin that compiles Sass using the Ruby-based compiler
We found that broccoli-ruby-sass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.