Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('serve', function() {
log.info('Webpack building.');
addEntries(webpackDevConfig, webpackDevConfig.devServer);
let compilerConfig = webpack(webpackDevConfig);
new WebpackDevServer(compilerConfig, webpackDevConfig.devServer).listen(webpackDevConfig.devServer.port, webpackDevConfig.devServer.host, function(error) {
if (error) {
log.error('Webpack build error:', error);
}
log.info('Open:', AUTO_OPEN_URL);
opn(AUTO_OPEN_URL);
});
});