mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
Merge pull request #457 from sharelatex/as-silent-webpack-exit
Exit webpack without error if no entry points found
This commit is contained in:
@@ -15,6 +15,12 @@ if (fs.existsSync(MODULES_PATH)) {
|
||||
}, 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 = {
|
||||
// Defines the "entry point(s)" for the application - i.e. the file which
|
||||
// bootstraps the application
|
||||
|
||||
Reference in New Issue
Block a user