Giter Site home page Giter Site logo

inline-datauri-brunch's Introduction

inline-datauri-brunch

Convert image path to data uri in to url() in CSS

Then, configure inline-datauri-brunch in the plugins section of your brunch-config file, like so:

plugins: {
    inlineDataUri: {
        maxSizeLimitInKb: 4, // Max size of image file to be converted
        altImageDir: 'static/css', // Alternate image directory relative to css files.
        verbose: 0,
        hideErrors: false,
        urlQuotes: false // Controls keeping quoting inside `url()`, incase of svg it will always keep quotes
    }
}

Possible verbose values for Brunch config

    0 => No verbose (default)
    1 => Show only skipped images whose size is greater than "inlineDataUri.maxSizeLimitInKb" (default = 32KB)
    2 => Show only skipped HTTP/HTTPS images
    3 => Show only Converted images to data-uri
    4 => Show all

License

MIT License Copyright (c) 2018 vineetenator

inline-datauri-brunch's People

Contributors

vineetarya-chegg avatar vineetenator avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.