--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
37
node_modules/parse-import/README.md
generated
vendored
Normal file
37
node_modules/parse-import/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# parse-import [](https://travis-ci.org/kevva/parse-import)
|
||||
|
||||
> Parse CSS `@import` statements.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ npm install --save parse-import
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var parseImport = require('parse-import');
|
||||
var str = [
|
||||
'@import url("foo.css");',
|
||||
'@import "bar.css" only screen and (min-width: 25em);'
|
||||
].join(' ');
|
||||
|
||||
parseImport(str);
|
||||
|
||||
/*
|
||||
[{
|
||||
path: 'foo.css',
|
||||
condition: '',
|
||||
rule: '@import url("foo.css")'
|
||||
}, {
|
||||
path: 'bar.css',
|
||||
condition: 'only screen and (min-width: 25em)',
|
||||
rule: '@import "bar.css" only screen and (min-width: 25em)'
|
||||
}]
|
||||
*/
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Kevin Mårtensson](https://github.com/kevva)
|
||||
Loading…
Reference in a new issue