mct-convert-image-to-base64

0.0.5 • Public • Published

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.

Package Sidebar

Install

npm i mct-convert-image-to-base64

Weekly Downloads

4

Version

0.0.5

License

MIT

Last publish

Collaborators

  • gtb104