12345678910111213141516171819202122232425262728 |
- import { defineConfig } from 'vite';
- import { resolve } from 'path';
- import vue from '@vitejs/plugin-vue';
- export default defineConfig({
- base: '/',
- // define: {
- // 'process.env': process.env, // 啟用環境變數
- // },
- plugins: [vue()],
- resolve: {
- dedupe: [
- 'vue'
- ],
- alias: {
- '@': resolve(__dirname, 'src'),
- }
- },
- build: {
- rollupOptions: {
- output: {
- entryFileNames: `assets/[name].js`,
- chunkFileNames: `assets/[name].js`,
- assetFileNames: `assets/[name].[ext]`
- }
- },
- },
- })
|