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.
From the root of your Mimosa project, type npm install mct-convert-image-to-base64 --save
Add this module as a combine transform in the mimosa-config
file.
combine: {
folders: [
{
transforms: [
require('mct-convert-image-to-base64')
]
Run npm test
to execute test suite.