Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-freeze-resources

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-freeze-resources

A resource freezer plugin for gulp

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-freeze-resources

A resource freezer plugin for gulp

Usage

First, install gulp-freeze-resources as a development dependency:

npm install --save-dev gulp-freeze-resources

Then, add it to your gulpfile.js:

var gulp = require('gulp');
var concat = require('gulp-concat');
var Freezer = require('gulp-freeze-resources');
var freezer = null;

gulp.task('styles', function () {
    freezer = new Freezer();
    return gulp.src('src/**/*.css')
        .pipe(freezer.freeze())
        .pipe(concat('styles.css'))
        .pipe(gulp.dest('build/public'));
});

gulp.task('resources', ['styles'], function () {
    return freezer.resources()
        .pipe(freezer.rename())
        .pipe(gulp.dest('build/public'));
});

It is important to add styles task as dependency for resources task!

Keywords

FAQs

Package last updated on 27 Jun 2014

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