GithubHelp home page GithubHelp logo

robinck / gulp-css-rebase Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 73 KB

Rewrite url references in CSS and copyed CSS assets πŸ‡ΊπŸ‡¦

Home Page: https://www.npmjs.com/package/gulp-css-rebase

License: MIT License

JavaScript 100.00%
gulp gulp-plugin css css-rebase css-url-rewrite css-assets assets-rebase

gulp-css-rebase's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.