webpack-dev-serverreload snippet to your entries.
var ReloadPlugin = ;configplugins;
- You pass IP address to the constructor:
- You can use
webpack-dev-server --reload=192.168.0.1to override the configured IP address.
When no IP address is given,
webpack-reload-plugin does NOT add the snippet. This way you can include the plugin to your config, but only activate it using the commandline.
webpack # creates a build without the reload snippetwebpack-dev-server --reload=localhost # run the dev server with live reload
- Fixed bug: typo
- Fixed bug: Couldn't use
--reloadcommandline and use IP from webpack config.