0.3.3 • Published 7 years ago

postcss-url-editor v0.3.3

Weekly downloads
21
License
MIT
Repository
github
Last release
7 years ago

Base Usage:

'use strict';
const postcss = require('postcss');
const urlEditor = require('postcss-url-editor');
const handlers = [
	'add-version?prop=v',
	'public-path?base=http://domain.com/css',
	function(src) {
		console.log(src)
	}
];

postcss([
	// ...other processors
	urlEditor(handlers)
]);

enable md5 in Add-Version

If css files are stored in a same directory, then:

add-version?md5Base=path/to/css/directory

Or set the least common directory, both cssSrc and cssDest. The first one stands for the input directory, and the other one means the output directory.

add-version?cssSrc=src&cssDest=dist
0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago