gulp-css-processor
Rewrite url references in css files and copy css assets
Last updated 3 years ago by youngluo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-css-processor 
SYNC missed versions from official npm registry.

gulp-css-processor

A gulp plugin that allows rewriting url references in css files.

Install

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

Usage

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

gulp.task('default', () =>
	gulp.src('src/*.css')
		.pipe(processor())
		.pipe(gulp.dest('dist'))
);

Options

  • dest - The target directory for the processed css file. Paths are rewritten relatively to that directory. Default 'dist'.
  • assets - The target directory for CSS assets. Default 'assets'.
  • suffix - The suffix of hash. Default 'v'.
  • prefix - The prefix of url in css files. Default ''.

Current Tags

  • 1.1.0                                ...           latest (3 years ago)

2 Versions

  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |