• build css into individual js files instead of using css links.

    Returns Plugin

    a vite plugin

    Example

    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'
    }
    }
    }
    });

Generated using TypeDoc