New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mincer-ruby-sass

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mincer-ruby-sass

Ruby Sass engine for Mincer

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

mincer-ruby-sass

Mincer Sass/SCSS engine that uses official Ruby Sass engine with Sourcemap support.

NOTES

  • This package assumes you have the Ruby Sass gem installed. We do not use the gem's provided binary file, but we do require 'sass'. We use our own "bin" file internally to add invalidation functionality by making Mincer dependOn each individual file included in the .scss file.

Sourcemap Support

Sourcemap support is still a little experimental. In our own local testing, we found that @imported files often fail when accessed/compiled directly, since mixins and variables are not avaiable. To allow accessing those files directly, there is a setShowRawOutput method to define a custom predicate to determine whether to show raw ouput vs. compiled Sass output. If your predicate returns a truthy value, then the raw file contents will be shown, instead of the compiled Sass. An example usage can be found below.

Example:

var sassEngine = require('mincer-ruby-sass');

var COMPILED_STYLESHEETS = /stylehseets\/(app|mobile)\./;

sassEngine.setShowRawOutput(function (path) {
  return !COMPILED_STYLESHEETS.test(path);
});

This will show the raw output for any path that does not match the defined regex, in this case, the app.(s)css and mobile.(s)css paths. So, any @imported assets will show their raw contents, while the two files above will show the compiled contents.

Keywords

FAQs

Package last updated on 19 Mar 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc