gulp-cmsref

0.1.0 • Public • Published

Gulp plugin to replace all media occurrences in CSS files with FirstSpirit CMS_REF tags:

url("../path/to/image-filename.jpg") → url("$CMS_REF(media:"image_filename")$")

The generated reference name is essentially the filename without extension and with all special chars replaced with underlines. A mapping object with filenames (not paths!) as keys and reference names as values can also be passed to the plugin:

cmsref({
    "image-filename.jpg": "my_image_jpg"
})

Package Sidebar

Install

npm i gulp-cmsref

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.92 kB

Total Files

4

Last publish

Collaborators

  • ybouhjira