vite-plugin-stylex-next
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-stylex-next

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.67 MB

Total Files

7

Last publish

Collaborators

  • imwildcat