Neverending Prototype Mode

    babel-plugin-transform-css-import-to-string

    0.0.2 • Public • Published

    babel-plugin-transform-css-import-to-string

    Turn CSS imports into strings.

    Example

    Given the following style.css.

    body { background-color: red; }

    in

    import css from './style.css';

    out

    var css = 'body{background-color:red;}';

    Installation

    $ npm install babel-plugin-transform-css-import-to-string

    Usage

    Via .babelrc (Recommended)

    .babelrc

    {
      "plugins": ["transform-css-import-to-string"]
    }

    Via CLI

    $ babel --plugins transform-css-import-to-string script.js

    Via Node API

    require("babel-core").transform("code", {
      plugins: ["transform-css-import-to-string"]
    });

    Install

    npm i babel-plugin-transform-css-import-to-string

    DownloadsWeekly Downloads

    879

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • gnandretta