Rename the error handlers file at loading time
This commit is contained in:
parent
84db8d8866
commit
f975426c61
@ -58,7 +58,7 @@
|
||||
connectivity issues.
|
||||
</p>
|
||||
<button id="loading-reload" class="btn">Reload page</button>
|
||||
<script async src="js/loading-slow-alert.js"></script>
|
||||
<script async src="js/loading-error-handlers.js"></script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -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;
|
||||
});
|
||||
});
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user