Please make sure that you have installed svrx already.
svrx -p "webpack"
const svrx = require('@svrx/svrx');
svrx({ plugins: ['webpack'] }).start();
with options
svrx({
plugins: [{
name: 'webpack',
options: {
hot: false
}
}]
}).start();
webpack config file or object, default is $root/webpack.config.js
($root
means options.root
)
Enable webpack Hot Module Replacement feature, default is true
options can be passed to the client by adding querystring parameters to the path in the webpack config
see webpack-hot-middleware#client for detail
for example, options {timeout: 3000}
will been encode as webpack-hot-middleware/client?timeout=3000
The path which the middleware will serve the event stream on, default is /__webpack_hmr
MIT