add --host

This commit is contained in:
Daniel Bulant 2021-06-09 17:13:12 +02:00
parent 769f311f9c
commit 5361091fc2
3 changed files with 837 additions and 3 deletions

834
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -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",

View file

@ -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
});