Nerds Publishing Monstrosities
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    rework-import-externalpublic

    rework-import-external Build Status

    A rework plugin to download and inline CSS for external source via @import

    Install

    $ npm install --save rework-import-external

    Usage

    const rework = require('rework');
    const plugin = require('rework-import-external');
     
    let css = rework(`
    @import "style1.css" (min-width: 100px);
    @import "/root/path/style2.css";
    @import "../style3.css";
    `, {
      // base URL
      source: 'http://some.domain/base/path/'
    }).use(plugin({}, (err, ast) => {
      css.toString()
    }))

    License

    MIT © Andriy Rakhnin

    install

    npm i rework-import-external

    Downloadsweekly downloads

    10

    version

    0.0.4

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar