Skip to content

Commit 8b7ee0b

Browse files
committed
Fix serve
1 parent 20b80a7 commit 8b7ee0b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/webamp/scripts/rollupPlugins.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function getPlugins({ minify, outputFile, vite }) {
3030
compilerOptions: {
3131
jsx: "react-jsx",
3232
module: "esnext",
33-
declarationDir: vite ? "dist/declarations" : undefined,
33+
declarationDir: vite ? "dist/demo-site/declarations" : undefined,
3434
// Without this it complains that files will be overwritten, but I don't
3535
// think this ever gets used...
3636
outDir: vite ? undefined : "./tsBuilt",

packages/webamp/vite.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getPlugins } from "./scripts/rollupPlugins.mjs";
33

44
export default defineConfig({
55
build: {
6-
outDir: "../dist",
6+
outDir: "../dist/demo-site",
77
},
88
root: "demo",
99
// Used only by the demo site, not the library
@@ -13,7 +13,11 @@ export default defineConfig({
1313
},
1414
// @ts-ignore
1515
plugins: [
16-
...getPlugins({ minify: true, outputFile: "dist/report", vite: true }),
16+
...getPlugins({
17+
minify: true,
18+
outputFile: "dist/demo-site/report",
19+
vite: true,
20+
}),
1721
/*
1822
replace({
1923
// Ensure we don't use the dev build of React

0 commit comments

Comments
 (0)