vite-plugin-include-css
v4.0.4
Published
build css into individual js files instead of using css links.
Downloads
5
Maintainers
Readme
vite-plugin-include-css
build css into individual js files instead of using css links. Vite >= 3.1
Installation
npm install vite-plugin-include-css --save-dev
Usage
import { defineConfig } from 'vite';
import includeCSS from 'vite-plugin-include-css';
export default defineConfig({
plugins: [
includeCSS()
],
build: {
cssCodeSplit: false,
rollupOptions: {
output: {
manualChunks: undefined,
assetFileNames: 'assets/[name][extname]',
entryFileNames: '[name].js',
format: 'iife'
}
}
}
});