Installation
@almighty-shogun/vite-preset is an ESM package for Vite projects. Vite is a peer dependency and must be installed alongside the preset.
Install
sh
bun add -d @almighty-shogun/vite-preset vitesh
npm install -D @almighty-shogun/vite-preset vitesh
pnpm add -D @almighty-shogun/vite-preset vitesh
yarn add -D @almighty-shogun/vite-preset viteImporting
All public APIs are available from the package root.
ts
import { cssModules } from '@almighty-shogun/vite-preset';Configure
Add cssModules to the Vite configuration's plugin list:
ts
import { defineConfig } from 'vite';
import { cssModules } from '@almighty-shogun/vite-preset';
export default defineConfig({
plugins: [
cssModules()
]
});