-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.ts
24 lines (23 loc) · 853 Bytes
/
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
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import publicPath from 'vite-plugin-public-path';
// https://vitejs.dev/config/
export default defineConfig({
base: process.env.NODE_ENV === 'production' ? '/__vite_base_public_path_/' : '/',
plugins: [
vue(),
publicPath({
// A JS expression evaluates on client side each time when loading a new file
// Should evaluate to a string ending with "/"
publicPathExpression: 'window._publicPath',
// See below for explanation of `options.html`
html: true,
// (Optional) The plugin will not rewrite any <script> tags whose src matches the provided filters
// Useful for your external dependencies
// Can be string, string[], RegExp or RegExp[]
// excludeScripts: /^https:.*systemjs/,
}),
],
build: {
},
});