vite-plugin-package-version/demo/vite.config.ts

13 lines
313 B
TypeScript
Raw Normal View History

2021-02-13 20:24:24 +11:00
import reactRefresh from '@vitejs/plugin-react-refresh';
import { defineConfig } from 'vite';
2021-02-13 21:38:58 +11:00
import loadVersion from 'vite-plugin-package-version';
2021-02-13 20:24:24 +11:00
// https://vitejs.dev/config/
export default defineConfig({
2021-02-13 21:38:58 +11:00
plugins: [reactRefresh(), loadVersion()],
2021-04-23 06:52:14 +10:00
server: {
port: 3000,
strictPort: true,
},
2021-02-13 20:24:24 +11:00
});