Auto reload and bug fixes

This commit is contained in:
Sebastian Seedorf
2020-11-14 19:38:16 +01:00
parent 5a56fc26d2
commit 6189b95b6e
22 changed files with 265 additions and 47 deletions

View File

@@ -1,14 +1,16 @@
- const baseUrl = Config.EXTERNAL_BASE_URL;
doctype html
html
head
title= title
link(rel='stylesheet', href='/styles/style.css')
link(rel='stylesheet', href=baseUrl+'/styles/style.css')
if !Config.isProduction
script(type='text/javascript', async, src=baseUrl+'/auto-reload/client.js')
body
block content
script(type='text/javascript', src='/js/require-2.3.6.min.js')
script(type='text/javascript', src='/js/bundle.js')
script(type='text/javascript', src=baseUrl+'/js/require-2.3.6.min.js')
script(type='text/javascript', src=baseUrl+'/js/bundle.js')
script.
require(['src/index'], function (index) {
console.log(index);
index.setConfig({EXTERNAL_BASE_URL: '#{externalUrl}'});
index.setConfig({EXTERNAL_BASE_URL: '#{baseUrl}'});
});