feat(artboard): implement 8 new templates

This commit is contained in:
Amruth Pillai
2023-11-09 21:01:01 +01:00
parent 9acf7e8d22
commit 92bb9f96a0
37 changed files with 5422 additions and 1810 deletions

View File

@ -2,20 +2,24 @@
import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin";
import react from "@vitejs/plugin-react-swc";
import { defineConfig, searchForWorkspaceRoot } from "vite";
import { defineConfig, searchForWorkspaceRoot, splitVendorChunkPlugin } from "vite";
export default defineConfig({
base: "/artboard/",
cacheDir: "../../node_modules/.vite/artboard",
build: {
sourcemap: true,
},
server: {
host: true,
port: 6173,
port: +(process.env.__DEV__ARTBOARD_PORT ?? 6173),
fs: { allow: [searchForWorkspaceRoot(process.cwd())] },
},
plugins: [react(), nxViteTsPaths()],
plugins: [react(), nxViteTsPaths(), splitVendorChunkPlugin()],
resolve: {
alias: {