vite-postcss-tsb
v1.0.6
Published
This plugin enable vite to build css using postcss without bundling into single file
Downloads
4
Readme
Vite PostCSS TreeShake Build Plugin
Installation
npm i -D vite-postcss-tsb
Usages
// vite.config.js
import { defineConfig } from "vite";
import { vitePostCSSTreeShakeBuild } from "vite-postcss-tsb";
export default defineConfig({
plugins: [
vitePostCSSTreeShakeBuild({
src: "src/assets/theme",
outDir: "dist/theme",
}),
],
});
Options
| Option | Required | Description | | ---------- | -------- | ----------------------------------- | | src | Yes | Entry directory of css | | outDir | Yes | Output root Directory | | plugins | No | Array of PostCSS plugins | | extensions | No | Array of file extensions to process |