mct-convert-image-to-base64
v0.0.5
Published
This Mimosa-Combine Transform package will find image URLs within stylesheets and replace the URL with a base64 representation of the linked image.
Downloads
3
Maintainers
Readme
mct-rewrite-css-url-paths
Overview
This Mimosa-Combine Transform package will find image URLs within stylesheets and replace the URL with a base64 representation of the linked image.
Supported file types are:
- image/gif
- image/jpeg
- image/png
For information on mimosa-combine transforms, checkout the mimosa-combine repo.
Installation
From the root of your Mimosa project, type npm install mct-convert-image-to-base64 --save
Usage
Add this module as a combine transform in the mimosa-config
file.
combine: {
folders: [
{
transforms: [
require('mct-convert-image-to-base64')
]
Testing
Run npm test
to execute test suite.