blob: 6a79d31a16d6306cfd32d66debe4fe96113b337b [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';
Misha Krieger-Raynauld86917ea2022-11-20 14:21:02 -050020import svgr from 'vite-plugin-svgr';
simon7a7b4d52022-09-23 02:09:42 -040021
simond8ca2f22022-10-11 23:30:55 -040022export default defineConfig({
Misha Krieger-Raynauld86917ea2022-11-20 14:21:02 -050023 plugins: [react(), svgr()],
simond8ca2f22022-10-11 23:30:55 -040024 server: {
25 host: '0.0.0.0',
26 port: 3000,
simond8ca2f22022-10-11 23:30:55 -040027 },
28 preview: {
29 port: 8080,
30 },
31 define: {
32 global: {},
33 },
simond8ca2f22022-10-11 23:30:55 -040034});