Skip to content

Connz/gulp-cmsref

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
})

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%