Skip to content

Commit

Permalink
Fix serve
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Aug 28, 2024
1 parent 20b80a7 commit 8b7ee0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/webamp/scripts/rollupPlugins.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function getPlugins({ minify, outputFile, vite }) {
compilerOptions: {
jsx: "react-jsx",
module: "esnext",
declarationDir: vite ? "dist/declarations" : undefined,
declarationDir: vite ? "dist/demo-site/declarations" : undefined,
// Without this it complains that files will be overwritten, but I don't
// think this ever gets used...
outDir: vite ? undefined : "./tsBuilt",
Expand Down
8 changes: 6 additions & 2 deletions packages/webamp/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getPlugins } from "./scripts/rollupPlugins.mjs";

export default defineConfig({
build: {
outDir: "../dist",
outDir: "../dist/demo-site",
},
root: "demo",
// Used only by the demo site, not the library
Expand All @@ -13,7 +13,11 @@ export default defineConfig({
},
// @ts-ignore
plugins: [
...getPlugins({ minify: true, outputFile: "dist/report", vite: true }),
...getPlugins({
minify: true,
outputFile: "dist/demo-site/report",
vite: true,
}),
/*
replace({
// Ensure we don't use the dev build of React
Expand Down

0 comments on commit 8b7ee0b

Please sign in to comment.