Turn CSS imports into strings.
Given the following style.css.
body { background-color: red; }import css from './style.css';var css = 'body{background-color:red;}';$ npm install babel-plugin-transform-css-import-to-string.babelrc
{
"plugins": ["transform-css-import-to-string"]
}$ babel --plugins transform-css-import-to-string script.jsrequire("babel-core").transform("code", {
plugins: ["transform-css-import-to-string"]
});