@best-shot/dev-server
v0.19.0
Published
DevServer support of `@best-shot/cli`
Downloads
333
Maintainers
Readme
@best-shot/dev-server
DevServer support of @best-shot/cli
.
Features
- All Features of webpack-dev-server@4
- Hook
historyApiFallback
intopublicPath
- 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
isfalse
by default.options.hot
isonly
by default.