Merge pull request #457 from sharelatex/as-silent-webpack-exit

Exit webpack without error if no entry points found
This commit is contained in:
James Allen 2018-03-28 11:18:18 +01:00 committed by GitHub
commit 28aef4e72b

View file

@ -15,6 +15,12 @@ if (fs.existsSync(MODULES_PATH)) {
}, entryPoints) }, entryPoints)
} }
// If no entry points are found, silently exit
if (!Object.keys(entryPoints).length) {
console.warn('No entry points found, exiting')
process.exit(0)
}
module.exports = { module.exports = {
// Defines the "entry point(s)" for the application - i.e. the file which // Defines the "entry point(s)" for the application - i.e. the file which
// bootstraps the application // bootstraps the application