Socket
Socket
Sign inDemoInstall

gulp-bless

Package Overview
Dependencies
58
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 3.0.0

6

gulpfile.js

@@ -23,6 +23,6 @@ var gulp = require('gulp');

.pipe(coverage.enforce({
statements: 85,
lines: 85,
blocks: 75
statements: 60,
lines: 60,
blocks: 60
}));
});

@@ -7,2 +7,3 @@ 'use strict';

var gutil = require('gulp-util');
var merge = require('merge');
var File = gutil.File;

@@ -13,4 +14,11 @@ var PluginError = gutil.PluginError;

var pluginName = 'gulp-bless';
var defaults = {
cacheBuster: true,
cleanup: true,
compress: false,
force: false,
imports: true
};
options = options || {};
options = merge(true, defaults, options);

@@ -27,2 +35,4 @@ return through.obj(function(file, enc, cb) {

var contents = file.contents.toString('utf8');
var blessOpts = options;
if(blessOpts.log) delete blessOpts.log

@@ -29,0 +39,0 @@ new (bless.Parser)({

{
"name": "gulp-bless",
"version": "2.0.0",
"version": "3.0.0",
"homepage": "http://github.com/adam-lynch/gulp-bless",

@@ -10,3 +10,4 @@ "description": "CSS post-processor which splits CSS files suitably for Internet Explorer < 10. Bless + Gulp = gulp-bless.",

"gulp-util": "*",
"through2": "~0.5.1"
"through2": "~0.5.1",
"merge": "~1.2.0"
},

@@ -17,3 +18,4 @@ "devDependencies": {

"gulp-mocha": "*",
"should": "*"
"should": "*",
"proxyquire": "~1.0.1"
},

@@ -20,0 +22,0 @@ "scripts": {

@@ -47,6 +47,6 @@ gulp-bless [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]

**bless(options)**. The (optional) `options` argument is passed on as is to [bless.js](https://github.com/paulyoung/bless.js). You can also include a `log` option to control whether Gulp should log output which defaults to `false` (this isn't passed to `bless.js`).
**bless(options)**. The (optional) `options` argument is passed on to [bless.js](https://github.com/paulyoung/bless.js). You can also include a `log` option to control whether Gulp should log output which defaults to `false` (this isn't passed to `bless.js`).
Bless' options are listed here: [paulyoung/bless.js/blob/master/bin/blessc#L10](https://github.com/paulyoung/bless.js/blob/master/bin/blessc#L10).
For example, if you wanted the first CSS chunk / "blessed" file to `@import` the others, then do this:
For example, if you didn't want the first CSS chunk / "blessed" file to `@import` the others, then you'd do this:

@@ -57,3 +57,3 @@

.pipe(bless({
imports: true
imports: false
}))

@@ -63,2 +63,4 @@ .pipe(gulp.dest('./'))

Note: Breaking change as of `3.0.0`; the `options` did not fallback to the [bless.js' defaults](https://github.com/paulyoung/bless.js/blob/master/bin/blessc#L10) when missing, but do now.
##### A note about sourcemaps:

@@ -65,0 +67,0 @@ If you're using a CSS pre-processor which creates inline sourcemaps [bless.js](https://github.com/paulyoung/bless.js) will take a very long time to run. It's recommended that you don't pass files containing inline sourcemaps to `gulp-bless`. If you do want to use sourcemaps then create them as a separate `.map` file.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc