@kibeo/craco-linaria3

1.0.1 • Public • Published

craco-linaria3

craco-linaria is not support linaria3, So update some file.

A craco plugin to use Linaria zero-runtime CSS in JS library in a create react app.

Installation

First, follow craco's installation instructions.

Then, install craco-linaria3 and Linaria:

$ yarn add  @linaria/core @linaria/react
and
$ yarn add craco-linaria3 @linaria/babel @linaria/webpack-loader -D

Usage

/* craco.config.js */
const CracoLinariaPlugin = require('craco-linaria3')

module.exports = {
  plugins: [
    {
      plugin: CracoLinariaPlugin,
      options: {
        // Linaria options
      },
    },
  ],
}

You can specify Linaria options inline (as above) or it will be picked up from any of the supported configuration paths.

Git Ignore

This plugin stores Linaria cache in src/.linaria_cache, so you might want to add that path to your .gitignore file.

Thanks

craco-linaria

Package Sidebar

Install

npm i @kibeo/craco-linaria3

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

8.93 kB

Total Files

10

Last publish

Collaborators

  • gol13014