feat: add dashboard setup with esbuild + chakra-ui

This commit is contained in:
Lakhan Samani
2021-12-29 11:56:19 +05:30
parent df192bed4d
commit cf4d94a7aa
16 changed files with 1925 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
const __is_prod__ = process.env.NODE_ENV === 'production';
require('esbuild').build({
entryPoints: ['src/index.tsx'],
chunkNames: '[name]-[hash]',
bundle: true,
minify: __is_prod__,
outdir: 'build',
splitting: true,
format: 'esm',
watch: !__is_prod__,
});