Napolean Paced Mischeviously
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    rework-plugin-inlinepublic

    rework-plugin-inline

    Build Status

    inline() plugin for rework, formerly included in core

    .inline(dir)

    Inline files from dir directly to CSS. Replace inline(path) to Data URI with base64 encoding of file. It is useful for small images and fonts.

    Of course, you can use inline only with node. It is not available in the browser with component.

    var css = rework(read(css))
      .use(rework.inline('images/', 'fonts/'))
      .toString()
    .logo {
      background: inline(icons/logo.png);
    }

    yields:

    .logo {
      background: url("data:image/png;base64,iVBORw0…");
    }

    install

    npm i rework-plugin-inline

    Downloadsweekly downloads

    21

    version

    1.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar