An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# vite-plugin-bundle-styles

[![GitHub Release Version](https://img.shields.io/github/v/release/kieranwv/vite-plugin-bundle-styles?label=Release&color=%42b883)](https://github.com/kieranwv/vite-plugin-bundle-styles/releases)
[![NPM Version](https://img.shields.io/npm/v/vite-plugin-bundle-styles?style=flat&label=npm&color=%42b883)](https://www.npmjs.com/package/vite-plugin-bundle-styles)
[![CI Status](https://github.com/kieranwv/vite-plugin-bundle-styles/actions/workflows/ci.yml/badge.svg?branch=main&color=%42b883)](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/)