mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-15 05:01:55 +00:00
Silently exit webpack process if no entry points are found in src or modules
This better supports the community edition which currently has no code or modules that match and throws an error.
This commit is contained in:
parent
a0ae178af7
commit
7520174288
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue