blob: 2cba77ca6b188de2308c744dd8c0b189790f8187 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
import * as path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
build: {
sourcemap: 'hidden',
rollupOptions: {
output: {
manualChunks(id) {
return id.includes('node_modules') ? 'vendor' : 'main';
},
},
},
},
plugins: [react()],
resolve: {
alias: {
app: path.resolve(__dirname, 'src/app'),
},
},
});
|