Package Exports
- parse-import
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parse-import) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
parse-import 
Parse CSS
@import
statements.
Install
$ npm install --save parse-import
Usage
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