@best-shot/dev-server

0.18.4 • Public • Published

@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

Package Sidebar

Install

npm i @best-shot/dev-server

Weekly Downloads

195

Version

0.18.4

License

MIT

Unpacked Size

17.7 kB

Total Files

16

Last publish

Collaborators

  • airkro