/firstspiritify

Module to replace URL references in CSS files with FirstSpirit `$CMS_REF(media:"", abs: 0)$` function calls

Primary LanguageJavaScriptMIT LicenseMIT

Firstspiritify

yargs mkdirp

Module to replace URL references in CSS files with FirstSpirit $CMS_REF(media:"", abs: 0)$ function calls.

Pattern

Firstspiritify searches for url\(['"]?([\w-_ ./]*\.[\w-_ ]*)['"]?\) and removes all spaces and dots (.) and replaces hyphens (-) with underscores (_).