0.1.0 • Published 2 years ago

vite-plugin-stylex-next v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vite Plugin for Facebook's Stylex

This project is a Vite plugin that provides support for Facebook's Stylex CSS-in-JS library.

Inspired by:

Usage

First, install the plugin in your project:

npm install --save-dev vite-plugin-stylex-next

Then, add it to your vite.config.ts

import { stylexPlugin } from 'your-plugin-name';

export default {
  plugins: [
    stylexPlugin(),
  ],
};

Then you should include the virtual:stylex.css in your entrypoint, like main.ts:

import 'virtual:stylex.css';

// entry of Vue or React project

Development

This project uses TypeScript for static typing and PNPM for package management.

To build the project, run:

npm run build
# or
npm run dev

This will compile the TypeScript code and output it to the dist directory.

Contributing

Contributions are welcome! Please read the contributing guide to get started. We'll probably write a guide in the future.

License

This project is licensed under the MIT License.

0.1.0

2 years ago