- vbuild --dev
+ vbuild dev
- vbuild --watch
+ vbuild watch
So options.dev
does not exist now, use options.mode
instead, the possible values are production
development
test
watch
options.webpack
function still works but is deprecated now, try options.extendWebpack
instead:
module.exports = {
extendWebpack(config) {
// Disable the progress bar while building
config.plugins.delete('progress-bar')
}
}
The config
argument is a webpack-chain instance.
--eslint
option is removed. It's recommended to run standalone eslint
bin instead since it's much faster.
setup
is renamed to setupDevServer
:
module.exports = {
setupDevServer(app) {
app.get('hello', (req, res) => res.send('hello'))
}
}
run
option is removed, nobody uses this except vbuild-karma