https://github.com/kieranwv/vite-plugin-bundle-styles
Bundles and compresses all style files into a single optimized CSS file.
https://github.com/kieranwv/vite-plugin-bundle-styles
bundle css cssnano less plugin postcss sass scss style stylus vite vite-plugin
Last synced: 4 months ago
JSON representation
Bundles and compresses all style files into a single optimized CSS file.
- Host: GitHub
- URL: https://github.com/kieranwv/vite-plugin-bundle-styles
- Owner: kieranwv
- License: mit
- Created: 2025-05-07T03:48:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-15T05:54:59.000Z (about 1 year ago)
- Last Synced: 2025-11-27T12:11:52.677Z (7 months ago)
- Topics: bundle, css, cssnano, less, plugin, postcss, sass, scss, style, stylus, vite, vite-plugin
- Language: TypeScript
- Homepage:
- Size: 157 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-bundle-styles
[](https://github.com/kieranwv/vite-plugin-bundle-styles/releases)
[](https://www.npmjs.com/package/vite-plugin-bundle-styles)
[](https://github.com/kieranwv/vite-plugin-bundle-styles/actions/workflows/ci.yml)
Bundles and compresses all style files into a single optimized CSS file.
## Usage
```
pnpm add vite-plugin-bundle-styles -D
```
```ts
import { defineConfig } from 'vite'
import { viteBundleStyles } from 'vite-plugin-bundle-styles'
export default defineConfig({
plugins: [
viteBundleStyles({
target: './src',
}),
],
})
```
## License
[MIT License](./LICENSE) © 2025-PRESENT [Kieran Wang](https://github.com/kieranwv/)