2.1.2 • Published 2 years ago

@rickzhou/react-css v2.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

install

yarn add @rickzhou/react-css

config tailwindcss

echo "module.exports = require('@rickzhou/react-css').postcss" > postcss.config.cjs

echo "module.exports = require('@rickzhou/react-css').tailwindcss" > tailwind.config.cjs

config @emotion/react css prop

tsconfig.json

{
  "complierOptions": {
    "jsxImportSource": "@emotion/react"
  }
}

vite.config.ts

import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [
    react({
      // Add the following two lines to your vite.config.ts file
      jsxImportSource: '@emotion/react',
      babel: {
        plugins: ['@emotion/babel-plugin'],
      },
    }),
  ],
});
2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.0.0

2 years ago