Skip to content

gtb104/mct-convert-image-to-base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This Mimosa-Combine Transform package will find image URLs within stylesheets and replace the URL with a base64 representation of the linked image.

Resources

License

Stars

Watchers

Forks

Packages

No packages published