From f975426c61dd023f5682e8fecff47dc52c139806 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?=
Date: Sat, 16 Dec 2017 18:18:43 -0500
Subject: [PATCH] Rename the error handlers file at loading time
---
client/index.html | 2 +-
.../js/{loading-slow-alert.js => loading-error-handlers.js} | 0
test/tests/build.js | 4 ++--
webpack.config.js | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
rename client/js/{loading-slow-alert.js => loading-error-handlers.js} (100%)
diff --git a/client/index.html b/client/index.html
index bfc61872..7a9789a3 100644
--- a/client/index.html
+++ b/client/index.html
@@ -58,7 +58,7 @@
connectivity issues.
-
+
diff --git a/client/js/loading-slow-alert.js b/client/js/loading-error-handlers.js
similarity index 100%
rename from client/js/loading-slow-alert.js
rename to client/js/loading-error-handlers.js
diff --git a/test/tests/build.js b/test/tests/build.js
index dc446ef6..e5b2b1da 100644
--- a/test/tests/build.js
+++ b/test/tests/build.js
@@ -25,7 +25,7 @@ describe("public folder", function() {
expect(fs.existsSync(path.join(publicFolder, "js", "bundle.js.map"))).to.be.true;
});
- it("loading-slow-alert.js is copied", function() {
- expect(fs.existsSync(path.join(publicFolder, "js", "loading-slow-alert.js"))).to.be.true;
+ it("loading-error-handlers.js is copied", function() {
+ expect(fs.existsSync(path.join(publicFolder, "js", "loading-error-handlers.js"))).to.be.true;
});
});
diff --git a/webpack.config.js b/webpack.config.js
index 45ea8e9b..e30258c9 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -67,7 +67,7 @@ const config = {
to: "fonts/[name].[ext]",
},
{
- from: "./client/js/loading-slow-alert.js",
+ from: "./client/js/loading-error-handlers.js",
to: "js/[name].[ext]",
},
{ // TODO: Build index.html with handlebars