https://github.com/atomicojs/vite
https://github.com/atomicojs/vite
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/atomicojs/vite
- Owner: atomicojs
- Created: 2022-04-03T22:09:38.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T18:29:17.000Z (about 2 years ago)
- Last Synced: 2025-08-24T23:59:34.087Z (10 months ago)
- Language: JavaScript
- Size: 336 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @atomico/plugin-vite
## this package is now called [@atomico/vite](https://github.com/atomicojs/vite)
configuration for Vite + Atomico, this plugin sets the necessary configuration to use Atomico + Jsx within vite.
## Usage
```jsx
import { defineConfig } from "vite";
import atomico from "@atomico/plugin-vite";
export default defineConfig({
build: {
target: "esnext",
lib: {},
},
plugins: [
...atomico({
jsx: true, // default true
cssLiterals: {
minify: true, // default false
postcss: true, // default false
},
}),
],
});
```
## CLI
This package incorporates a CLI to facilitate the export of libraries through vite, example:
```bash
atomico-vite src/**/*
# alias
library src/**/*
```
The above script will create the files according to your current vite.config.js configuration, but in a directory called `lib` and with a simple name.