mirror of
https://github.com/danbulant/heaventaker
synced 2026-06-19 22:51:50 +00:00
add --host
This commit is contained in:
parent
769f311f9c
commit
5361091fc2
3 changed files with 837 additions and 3 deletions
834
package-lock.json
generated
834
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "svelte-app",
|
||||
"name": "heaventaker",
|
||||
"version": "1.0.0",
|
||||
"license": "AGPL-3.0-or-later ",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"dev": "rollup -c -w",
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ function serve() {
|
|||
return {
|
||||
writeBundle() {
|
||||
if (server) return;
|
||||
server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], {
|
||||
server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev', '--host', '0.0.0.0'], {
|
||||
stdio: ['ignore', 'inherit', 'inherit'],
|
||||
shell: true
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue