DevServer support of @best-shot/cli
.
- 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)
npm install @best-shot/cli @best-shot/dev-server --save-dev
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
}
};
-
options.static
isfalse
by default. -
options.hot
isonly
by default.