Skip to content

Commit

Permalink
🔨 Rebuild when server-export.ts changes
Browse files Browse the repository at this point in the history
Why:
- When we change what files are being generated, it helps development if
  autobuild catches the changes automatically.
  • Loading branch information
luontola committed Jul 20, 2024
1 parent 1a68f62 commit 66dd031
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import md5 from "crypto-js/md5";
function serverExport() {
return {
name: 'server-export',
buildStart() {
this.addWatchFile(path.resolve(__dirname, 'web/src/server-export.ts'))
},
writeBundle(options, bundle) {
console.log(child_process.execSync("npm run server-export").toString());
},
Expand Down

0 comments on commit 66dd031

Please sign in to comment.