2021-10-17 19:50:22 +08:00
|
|
|
const { resolve } = require('path')
|
|
|
|
|
import {defineConfig} from 'vite'
|
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
import styleImport from 'vite-plugin-style-import'
|
|
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
server: {
|
|
|
|
|
host: 'local.zyplayer.com',
|
|
|
|
|
port: 80,
|
2021-10-20 22:32:25 +08:00
|
|
|
// https: true
|
2021-10-17 19:50:22 +08:00
|
|
|
},
|
|
|
|
|
base: '',
|
|
|
|
|
plugins: [
|
|
|
|
|
vue(),
|
|
|
|
|
],
|
|
|
|
|
build: {
|
|
|
|
|
emptyOutDir: true,
|
|
|
|
|
cssCodeSplit: false,
|
2021-11-26 23:51:14 +08:00
|
|
|
outDir: '../../zyplayer-doc-api/src/main/resources/dist',
|
2021-10-17 19:50:22 +08:00
|
|
|
rollupOptions: {
|
|
|
|
|
input: {
|
2021-11-26 23:51:14 +08:00
|
|
|
main: resolve(__dirname, 'doc-api.html'),
|
2021-10-17 19:50:22 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|