|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import {defineConfig} from "vite";
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
|
import fs from "fs";
|
|
|
|
|
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function resolve_entries(dirname: string): [string, string][] {
|
|
|
|
@ -33,6 +34,9 @@ export default defineConfig({
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
plugins: [
|
|
|
|
|
react()
|
|
|
|
|
react(),
|
|
|
|
|
cssInjectedByJsPlugin({
|
|
|
|
|
relativeCSSInjection: true,
|
|
|
|
|
})
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|