Skip to content

Commit

Permalink
example: fix Svelte dev mode (#4025)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 22, 2022
1 parent 5353874 commit ff2eed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/svelte-example/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"scripts": {
"build": "rollup -c",
"serve": "sirv public",
"start:client": "rollup -c -w",
"start:server": "node ./server.mjs",
"start": "npm-run-all --parallel start:client start:server",
Expand Down
2 changes: 1 addition & 1 deletion examples/svelte-example/rollup.config.js
Expand Up @@ -19,7 +19,7 @@ function serve () {
return {
writeBundle () {
if (server) return
server = require('node:child_process').spawn('npm', ['run', 'start', '--', '--dev'], {
server = require('node:child_process').spawn('npm', ['run', 'serve', '--', '--dev'], {
stdio: ['ignore', 'inherit', 'inherit'],
shell: true,
})
Expand Down

0 comments on commit ff2eed4

Please sign in to comment.