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

gulp-sass

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-sass - npm Package Compare versions

Comparing version 0.1.0 to 0.2.1

26

index.js

@@ -11,14 +11,22 @@ var es = require('event-stream')

function nodeSass (file, cb) {
// file is on object passed in by gulp
// file.contents is always a Buffer
var newFile = clone(file);
sass.render({
data: newFile.contents.toString(),
success: function (css) {
newFile.path = ext(newFile.path, '.css')
newFile.shortened = newFile.shortened && ext(newFile.shortened, '.css');
newFile.contents = new Buffer(css);
opts.data = newFile.contents.toString();
cb(null, newFile);
}
});
opts.success = function (css) {
newFile.path = ext(newFile.path, '.css');
newFile.shortened = newFile.shortened && ext(newFile.shortened, '.css');
newFile.contents = new Buffer(css);
cb(null, newFile);
}
opts.error = function (err) {
cb(err);
}
sass.render(opts);
}

@@ -25,0 +33,0 @@

{
"name": "gulp-sass",
"version": "0.1.0",
"version": "0.2.1",
"description": "Gulp plugin for sass",

@@ -5,0 +5,0 @@ "main": "index.js",

gulp-sass
=========
gulp plugin for sass
SASS plugin for [gulp](https://github.com/wearefractal/gulp).
#Install
```
npm install gulp-sass
```
#Usage
Something like this:
```javascript
var gulp = require('gulp');
var sass = require('gulp-sass')
gulp.task('sass', function () {
gulp.src('./scss/*.scss'))
.pipe(sass())
.pipe(gulp.dest('./css'));
});
```
Options passed as a hash into ```sass()``` will be passed along to [```node-sass```](https://github.com/andrew/node-sass)
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