Skip to content

Andarist/data-uri.macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published