Docker Image and first iteration
This commit is contained in:
1 parent
723b64b1c4
commit
bd9209ebb7
40 files changed
+26643
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig(({ mode }) => ({
|
||||
define: {
|
||||
"process.env.NODE_ENV": JSON.stringify(mode === "test" ? "test" : "production"),
|
||||
},
|
||||
plugins: [react()],
|
||||
build: {
|
||||
outDir: "../showcase/static/showcase/dist",
|
||||
emptyOutDir: true,
|
||||
lib: {
|
||||
entry: "src/main.tsx",
|
||||
formats: ["es"],
|
||||
fileName: () => "map.js",
|
||||
},
|
||||
rollupOptions: {
|
||||
output: {
|
||||
assetFileNames: "map.[ext]",
|
||||
},
|
||||
},
|
||||
},
|
||||
test: {
|
||||
environment: "jsdom",
|
||||
globals: true,
|
||||
},
|
||||
}));
|
||||
Reference in new issue
Block a user