summaryrefslogtreecommitdiff
path: root/public/views
diff options
context:
space:
mode:
authorDavid Mehren2018-07-02 22:24:56 +0200
committerDavid Mehren2018-09-06 17:26:09 +0200
commit29a3813adaa54adaafab1678e30d754ecf0c9e3b (patch)
tree5f6f0c79c1f6207539a448dbd248c95cdea4a1e5 /public/views
parent0017ddd3101f7c9445a70e8b38bf0046a0730f16 (diff)
Upgrade to Webpack 4 - first try
Signed-off-by: David Mehren <dmehren1@gmail.com>
Diffstat (limited to 'public/views')
-rw-r--r--public/views/includes/header.ejs2
-rw-r--r--public/views/includes/scripts.ejs4
2 files changed, 3 insertions, 3 deletions
diff --git a/public/views/includes/header.ejs b/public/views/includes/header.ejs
index 942a89f9..1e2e8988 100644
--- a/public/views/includes/header.ejs
+++ b/public/views/includes/header.ejs
@@ -1,3 +1,3 @@
<% for (var css in htmlWebpackPlugin.files.css) { %>
-<link href="<%= webpackConfig.output.baseUrl %><%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
+<link href="<%= webpackConfig.output.baseUrl %><%= htmlWebpackPlugin.files.css[css].path %>" rel="stylesheet">
<% } %>
diff --git a/public/views/includes/scripts.ejs b/public/views/includes/scripts.ejs
index df8fbc00..519bd86b 100644
--- a/public/views/includes/scripts.ejs
+++ b/public/views/includes/scripts.ejs
@@ -1,4 +1,4 @@
<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>
+<% for (var js in htmlWebpackPlugin.files.js) { %>
+<script src="<%= webpackConfig.output.baseUrl %><%= htmlWebpackPlugin.files.js[js].path %>" defer></script>
<% } %>