mirror of
https://github.com/louislam/dockge.git
synced 2024-12-01 06:34:03 +00:00
34 lines
878 B
TypeScript
34 lines
878 B
TypeScript
|
import { defineConfig } from "vite";
|
||
|
import vue from "@vitejs/plugin-vue";
|
||
|
import Components from "unplugin-vue-components/vite";
|
||
|
import { BootstrapVueNextResolver } from "unplugin-vue-components/resolvers";
|
||
|
import viteCompression from "vite-plugin-compression";
|
||
|
import "vue";
|
||
|
|
||
|
const viteCompressionFilter = /\.(js|mjs|json|css|html|svg)$/i;
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
server: {
|
||
|
port: 5000,
|
||
|
},
|
||
|
root: "./frontend",
|
||
|
build: {
|
||
|
outDir: "../dist",
|
||
|
},
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
Components({
|
||
|
resolvers: [ BootstrapVueNextResolver() ],
|
||
|
}),
|
||
|
viteCompression({
|
||
|
algorithm: "gzip",
|
||
|
filter: viteCompressionFilter,
|
||
|
}),
|
||
|
viteCompression({
|
||
|
algorithm: "brotliCompress",
|
||
|
filter: viteCompressionFilter,
|
||
|
}),
|
||
|
],
|
||
|
});
|