-
Notifications
You must be signed in to change notification settings - Fork 4
/
vite.config.ts
36 lines (34 loc) · 1.29 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*-------------------------------------------------------------------------------------------------
* Copyright (C) 2023 Intel Corporation. All rights reserved.
* Licensed under the Apache License 2.0. See LICENSE in the project root for license information.
* SPDX-License-Identifier: Apache-2.0
*-----------------------------------------------------------------------------------------------*/
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { viteStaticCopy } from "vite-plugin-static-copy";
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
import vuetify from "vite-plugin-vuetify";
import monacoEditorPlugin from "vite-plugin-monaco-editor";
import topLevelAwait from "vite-plugin-top-level-await";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
vuetify({ autoImport: true }),
monacoEditorPlugin({}),
topLevelAwait({ promiseExportName: "__tla", promiseImportName: (i) => `__tla_${i}` }),
viteStaticCopy({
targets: [
{
src: "src/assets/getstarted",
dest: "assets",
},
{
src: "src/assets/basic/preseticons/192x192",
dest: "assets/basic/preseticons",
},
],
}),
],
build: { target: "es2020" },
});