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

gulp-css-rebase

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-css-rebase

Rewrite url references in CSS and copyed CSS assets

  • 2.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36
increased by44%
Maintainers
1
Weekly downloads
 
Created
Source

js-semistandard-styleBuild StatusCode ClimatenpmDependenciesdevDependenciesNPM version

gulp-css-rebase

A gulp plugin that allows rewriting url references in CSS

Install

$ npm install --save-dev gulp-css-rebase

Usage

const gulp = require('gulp');
const rebase = require('gulp-css-rebase');

var outputPath = 'dest';
var outputAssets = 'static';

gulp.task('default', () =>
	gulp.src('src/*.css')
		.pipe(rebase({
		    output_css: outputPath,
		    output_assets: outputAssets,
            exclude: [
                'path/to/web/dir'
            ],
            overwrite: false
		}))
		.pipe(gulp.dest(outputPath))
);

Options

  • output_css - The target directory for the processed CSS. Paths are rewritten relatively to that directory.
  • output_assets - The target directory for CSS assets.
  • exclude - Paths are rewritten relatively to original path.
  • overwrite - Overwrite files

Keywords

FAQs

Package last updated on 03 Apr 2017

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