Skip to content

This plugin enable vite to build css using postcss without bundling into single file

License

Notifications You must be signed in to change notification settings

hasinoorit/vite-postcss-tsb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This plugin enable vite to build css using postcss without bundling into single file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published