mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
34 lines
716 B
JavaScript
34 lines
716 B
JavaScript
import { defineConfig } from 'vite'
|
|
import baseConfig from './vite.config.js'
|
|
|
|
/** see `ports` variable in test-utils.ts */
|
|
const port = 9525
|
|
|
|
export default defineConfig({
|
|
...baseConfig,
|
|
base: `http://localhost:${port}/`,
|
|
server: {
|
|
port,
|
|
strictPort: true,
|
|
},
|
|
build: {
|
|
...baseConfig.build,
|
|
outDir: 'dist/url-base',
|
|
watch: null,
|
|
minify: false,
|
|
assetsInlineLimit: 0,
|
|
rollupOptions: {
|
|
output: {
|
|
entryFileNames: 'entries/[name].js',
|
|
chunkFileNames: 'chunks/[name]-[hash].js',
|
|
assetFileNames: 'other-assets/[name]-[hash][extname]',
|
|
},
|
|
},
|
|
},
|
|
preview: {
|
|
port,
|
|
strictPort: true,
|
|
},
|
|
cacheDir: 'node_modules/.vite-url-base',
|
|
})
|