@best-shot/dev-server

DevServer support of @best-shot/cli.

Usage no npm install needed!

<script type="module">
  import bestShotDevServer from 'https://cdn.skypack.dev/@best-shot/dev-server';
</script>

README

@best-shot/dev-server logo

DevServer support of @best-shot/cli.

npm github node

Features

  • All Features of webpack-dev-server@4
  • Hook historyApiFallback into publicPath
  • Show a wait page when bundling
  • Provide a 404 error page
  • Open source file in vscode (from vue-devtools)

Installation

npm install @best-shot/cli @best-shot/dev-server --save-dev

Usage

npx --no-install best-shot serve [options]
// example: .best-shot/config.mjs
export default {
  experiments: {
    lazyCompilation: false // true by default
  },
  devServer: {
    // without this will fallback to `watch` mode
  }
};

Tips

Difference with webpack-dev-server

  • options.static is false by default.
  • options.hot is only by default.

Related