templates: Use just one webpack entry point per page.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-10-22 22:46:34 -07:00
committed by Tim Abbott
parent f245fcf408
commit fda70a5458
40 changed files with 125 additions and 140 deletions

View File

@@ -238,7 +238,9 @@ export default (env?: string): webpack.Configuration[] => {
if (!production) {
// Out JS debugging tools
config.entry['common'].push('./static/js/debug.js'); // eslint-disable-line dot-notation
for (const name of Object.keys(config.entry)) {
config.entry[name].push('./static/js/debug.js');
}
config.devServer = {
clientLogLevel: "error",
stats: "errors-only",