@coco-platform/babel-plugin-import-css-module

0.3.0 • Public • Published

babel-plugin-import-css-module

Build Status Coverage Status Package Dependency Package DevDependency

solution for develop component with css module.

Usage

Install:

# npm
npm install babel-plugin-import-css-module --save-dev
# yarn
yarn add babel-plugin-import-css-module --dev

Add babel plugin:

{
  "plugin": [
    [
      [
        "import-css-module",
        {
          "rule": "\\.pcss$"
        }
      ]
    ]
  ]
}

Example

import styles, { liberty } from './mascot.css';
import './mascot.css';
import styles, { liberty } from './mascot.css.json';

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @coco-platform/babel-plugin-import-css-module

Weekly Downloads

1

Version

0.3.0

License

ISC

Unpacked Size

3.77 kB

Total Files

3

Last publish

Collaborators

  • bornkiller
  • trashbox