babel-plugin-transform-css-import-to-string
Turn CSS imports into strings.
Example
Given the following style.css.
in
;
out
var css = 'body{background-color:red;}';
Installation
$ npm install babel-plugin-transform-css-import-to-string
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins transform-css-import-to-string script.js
Via Node API
;