shlink-web-client/vite.config.ts
2022-12-24 19:17:33 +01:00

22 lines
504 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { VitePWA } from 'vite-plugin-pwa';
import { manifest } from './manifest';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), VitePWA({
strategies: 'injectManifest',
srcDir: './src',
filename: 'service-worker.ts',
injectRegister: false,
manifestFilename: 'manifest.json',
manifest,
})],
build: {
outDir: 'build',
},
server: {
port: 3000,
},
});