Skip to content

Commit

Permalink
fix: fix hattip build
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Jan 27, 2025
1 parent 3c722cf commit 0abdcc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/hattip-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "hattip serve ./hattip-entry.ts --client",
"build": "cross-env NODE_ENV=production hattip build ./hattip-entry.ts --target es2022 --client",
"build": "vike build",
"preview": "pnpm run build && cross-env NODE_ENV=production wrangler pages dev",
"deploy": "pnpm run build && cross-env NODE_ENV=production wrangler pages deploy",
"test": "tsc --noEmit"
Expand Down
8 changes: 7 additions & 1 deletion examples/hattip-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@ export default defineConfig({
build: {
target: "es2022",
},
plugins: [hattip(), vike(), vikeSolid()],
plugins: [
hattip({
hattipEntry: "./hattip-entry.ts",
}),
vike(),
vikeSolid(),
],
});

0 comments on commit 0abdcc3

Please sign in to comment.