-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.js
38 lines (37 loc) · 1.1 KB
/
vite.config.js
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
37
38
import { resolve } from 'path'
import { defineConfig } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy'
export default defineConfig({
base: '',
build: {
rollupOptions: {
input: {
layout: resolve(__dirname, 'resources', 'css', 'app.scss'),
digid_mock: resolve(__dirname, 'resources', 'js', 'digid_mock.js'),
submit: resolve(__dirname, 'resources', 'js', 'submit.js'),
},
},
outDir: '',
assetsDir: 'static/assets',
manifest: 'static/assets/manifest.json',
emptyOutDir: false,
},
plugins: [
viteStaticCopy({
targets: [
{
src: resolve(__dirname, 'node_modules','swagger-ui-dist','swagger-ui-bundle.js'),
dest: resolve(__dirname,'static','assets')
},
{
src: resolve(__dirname, 'node_modules','swagger-ui-dist','swagger-ui.css'),
dest: resolve(__dirname,'static','assets')
},
{
src: resolve(__dirname, 'node_modules','redoc','bundles','redoc.standalone.js'),
dest: resolve(__dirname,'static','assets')
}
]
})
]
})