blob: 55090d8ec02f10496d99843ff7fa8ab90d39f4fa [file] [log] [blame]
simon26e79f72022-10-05 22:16:08 -04001/*
2 * Copyright (C) 2022 Savoir-faire Linux Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation; either version 3 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
13 *
14 * You should have received a copy of the GNU Affero General Public
15 * License along with this program. If not, see
16 * <https://www.gnu.org/licenses/>.
17 */
simond8ca2f22022-10-11 23:30:55 -040018import react from '@vitejs/plugin-react';
19import { defineConfig } from 'vite';
20import svgrPlugin from 'vite-plugin-svgr';
simon7a7b4d52022-09-23 02:09:42 -040021
simond8ca2f22022-10-11 23:30:55 -040022export default defineConfig({
23 server: {
24 host: '0.0.0.0',
25 port: 3000,
simond8ca2f22022-10-11 23:30:55 -040026 },
27 preview: {
28 port: 8080,
29 },
30 define: {
31 global: {},
32 },
33 plugins: [react(), svgrPlugin()],
34});