0.3.3 • Published 7 years ago
postcss-url-editor v0.3.3
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