Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 796 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 796 Bytes

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.