aboutsummaryrefslogtreecommitdiff
path: root/packages/config/vite/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/config/vite/index.ts')
-rw-r--r--packages/config/vite/index.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/config/vite/index.ts b/packages/config/vite/index.ts
new file mode 100644
index 0000000..a9306a6
--- /dev/null
+++ b/packages/config/vite/index.ts
@@ -0,0 +1,27 @@
+import react from '@vitejs/plugin-react';
+import { defineConfig } from 'vite';
+import { createHtmlPlugin } from 'vite-plugin-html';
+import svg from 'vite-plugin-svgr';
+import tsconfigPaths from 'vite-tsconfig-paths';
+
+export default defineConfig({
+ plugins: [
+ tsconfigPaths(),
+ react(),
+ svg({ svgrOptions: { icon: true } }),
+ createHtmlPlugin({
+ minify: true
+ })
+ ],
+ css: {
+ modules: {
+ localsConvention: 'camelCaseOnly'
+ }
+ },
+ root: 'src',
+ build: {
+ sourcemap: true,
+ outDir: '../dist',
+ assetsDir: '.'
+ }
+});