Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

craco-base64-inline-loader

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

craco-base64-inline-loader

A craco plugin to use base64-inline-loader with create-react-app

    1.0.0latest

Version published
Maintainers
1
Yearly downloads
9,249
increased by220.7%

Weekly downloads

Readme

Source

Craco Base64 Inline Loader

MIT License

This is a craco plugin that makes it easy to use the webpack base64-inline-loader with create-react-app version >= 2.

Installation

$ yarn add -D craco-base64-inline-loader # OR $ npm install craco-base64-inline-loader --save-dev

Basic Usage

craco-base64-inline-loader expect a test option containing your regex selector.

Here is a simple craco.config.js example to convert every font types to base64:

const base64Loader = require('craco-base64-inline-loader') module.exports = { webpack: { plugins: [ { plugin: base64Loader, options: { test: /\.(ttf|eot|otf|svg|woff(2)?)$/i , limit: 1000 // <-- Optional } } ] }

Keywords

FAQs

What is craco-base64-inline-loader?

A craco plugin to use base64-inline-loader with create-react-app

Is craco-base64-inline-loader popular?

The npm package craco-base64-inline-loader receives a total of 101 weekly downloads. As such, craco-base64-inline-loader popularity was classified as not popular.

Is craco-base64-inline-loader well maintained?

We found that craco-base64-inline-loader demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 29 Jan 2019
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc