Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const messages = formatWebpackMessages(stats.toJson({}, true))
const urls = prepareUrls(
program.ssl ? `https` : `http`,
program.host,
program.port
)
const isSuccessful = !messages.errors.length
if (isSuccessful && isFirstCompile) {
printInstructions(
program.sitePackageJson.name || "(Unnamed package)",
urls
)
printDeprecationWarnings()
if (program.open) {
Promise.resolve(openurl(urls.localUrlForBrowser)).catch(() =>
console.log(
`${chalk.yellow(
`warn`
)} Browser not opened because no browser was found`
)
)
}
}
isFirstCompile = false
if (webpackActivity) {
reportWebpackWarnings(stats)
if (!isSuccessful) {
const errors = structureWebpackErrors(