Inline stylesheets using @import
$ npm install rework-inline
Inline stylesheets using
@import
$ npm install --save rework-inline
@import "foo.css" (min-width: 25em);
body {
background: black;
}
yields:
@media (min-width: 25em) {
body {
background: red;
}
h1 {
color: grey;
}
}
body {
background: black;
}
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.
Type: String
Default: utf8
Use if your CSS is encoded in anything other than UTF-8.
Type: String|Array
Default: process.cwd()
A string or an array of paths in where to look for files.
MIT © Kevin Mårtensson
© 2010 - cnpmjs.org x YWFE | Home | YWFE