Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
fix(webpack): workaround for webpack does not bail
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jan 5, 2017
1 parent 84f9af9 commit 6056ce3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/scripts/build.js
Expand Up @@ -46,6 +46,11 @@ export default function build()
colors: true
}))

//fixme: remove this snippet when https://github.com/webpack/webpack/issues/2390 is fixed
if (stats.hasErrors()) {
process.exit(1)
}

var jsonStats = stats.toJson()
fse.writeJsonSync(path.resolve(buildFolderClient, "stats.json"), jsonStats)
callback()
Expand All @@ -72,6 +77,11 @@ export default function build()
colors: true
}))

//fixme: remove this snippet when https://github.com/webpack/webpack/issues/2390 is fixed
if (stats.hasErrors()) {
process.exit(1)
}

var jsonStats = stats.toJson()
fse.writeJsonSync(path.resolve(buildFolderServer, "stats.json"), jsonStats)
callback()
Expand Down

0 comments on commit 6056ce3

Please sign in to comment.