css-asset-copier
v1.0.2
Published
CSS URL asset copier for CSS URL rewriter
Downloads
16
Readme
CSS Asset Copier
Features
- Designed to be used with
css-url-rewriter-ex
library - Copy CSS related local assets to target directory
- Covered by unit tests
Installation
npm install css-asset-copier
Usage
var CssUrlRewriter = require('css-url-rewriter-ex');
var CssAssetCopier = require('css-asset-copier');
const rewriter = new CssUrlRewriter();
const assetCopier = new CssAssetCopier('dist');
rewriter.rewrite(filename, content);
assetCopier.copyAssets(rewriter.getLocalAssetList())
.then(() => {
console.log('Done!');
});