rework-inline

Inline stylesheets using @import

deprecated in favor of rework-import
Last updated 11 years ago by kevva .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install rework-inline 
SYNC missed versions from official npm registry.

rework-inline Build Status

Inline stylesheets using @import

Install

$ npm install --save rework-inline

Usage

@import "foo.css" (min-width: 25em);

body {
    background: black;
}

yields:

@media (min-width: 25em) {
    body {
        background: red;
    }

    h1 {
        color: grey;
    }
}

body {
    background: black;
}

API

inline(opts)

Import stylesheets using @import and an optional media query. Pass a string or an array of paths to the path option in where to search for stylesheets.

Options

encoding

Type: String
Default: utf8

Use if your CSS is encoded in anything other than UTF-8.

path

Type: String|Array
Default: process.cwd()

A string or an array of paths in where to look for files.

License

MIT © Kevin Mårtensson

Current Tags

  • 0.2.0                                ...           latest (10 years ago)

5 Versions

  • 0.2.0 [deprecated]           ...           10 years ago
  • 0.1.4 [deprecated]           ...           11 years ago
  • 0.1.3 [deprecated]           ...           11 years ago
  • 0.1.1 [deprecated]           ...           11 years ago
  • 0.1.0 [deprecated]           ...           11 years ago
Maintainers (1)
Downloads
Total 2
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE