Move config out of statics path

Since static path is providing with a high expiration data, we provide
configs via API. This shouldn't add any noticeable load while making it
uncached and this way working again.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
Sheogorath 2018-06-24 00:06:03 +02:00
parent 7c7cc289f2
commit 0ed4b50098
No known key found for this signature in database
GPG key ID: 1F05CC3635CDDFFD
5 changed files with 20 additions and 17 deletions

View file

@ -1,4 +1,4 @@
<script src="<%= webpackConfig.output.baseUrl %>/build/constant.js"></script>
<script src="<%= webpackConfig.output.baseUrl %>/config"></script>
<% for (var chunk in htmlWebpackPlugin.files.chunks) { %>
<script src="<%= webpackConfig.output.baseUrl %><%= htmlWebpackPlugin.files.chunks[chunk].entry %>" defer></script>
<% } %>