Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

data-uri.macro

Babel Macro npm version Build Status npm

Convert your assets to data URIs at build time with babel macros.

Installation

npm install --save-dev data-uri.macro

Usage

import dataUri from 'data-uri.macro'
import sampleSvg from '../assets/sample.svg'

const svg = dataUri(sampleSvg)
const png = dataUri('../assets/other.png')

About

🎣 Convert files to data-uris at build time.

Topics

Resources

Packages

No packages published