modernweb-dev / web

Guides, tools and libraries for modern web development.
https://modern-web.dev
MIT License
2.2k stars 278 forks source link

Web dev server hides shell when running. #1414

Open MikeVaz opened 3 years ago

MikeVaz commented 3 years ago

If you run web-dev-server --node-resolve --watch --app-index demo/index.html --esbuild-target auto in a shell. It would disappear on windows.

import { esbuildPlugin } from "@web/dev-server-esbuild";

export default {
  plugins: [esbuildPlugin({ ts: true, target: "auto" })],
  open: true,
  nodeResolve: true,
  appIndex: "demo/index.html",
  rootDir: "../../",
};

Expected behavior the command shell should stay visible.

LarsDenBakker commented 3 years ago

What do you mean by hide shell? Does it work as expected on other platforms?

MikeVaz commented 3 years ago

image

MikeVaz commented 3 years ago

I thought it was crashing in the beginning. But the server seems to be working in the background.

MikeVaz commented 2 years ago

If I run npx web-dev-server --node-resolve --watch --app-index src/index.html --esbuild-target auto it works fine now. Maybe npx vs global install of web-dev-server made a difference or something else changed.