-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
23 lines (21 loc) · 807 Bytes
/
Copy pathvite.config.js
File metadata and controls
23 lines (21 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {defineConfig} from 'vite';
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
export default defineConfig({
build: {
minify: false, // Disable minification to keep names intact
lib: {
entry: './resources/js/TerminalManager.ts', // Path to your entry file
name: 'TerminalManager', // Name for the global variable (UMD/iife builds)
fileName: (format) => `TerminalManager.${format}.js`, // Customize output file name
},
rollupOptions: {
output: {
globals: {
// Define external globals if needed
},
exports: 'named', // Ensure named exports are preserved
},
},
},
plugins: [cssInjectedByJsPlugin()],
});