diff options
author | Christoph (Sheogorath) Kern | 2018-10-03 16:52:32 +0200 |
---|---|---|
committer | GitHub | 2018-10-03 16:52:32 +0200 |
commit | edcd8a23ff02fd6cdda3255cd5c4da8aa73ee8d7 (patch) | |
tree | 0308250df2177e5ea909be155ffdff4918b08359 /public/views | |
parent | 7749a72f289159dd822f9b83f67a1f5554ce4fc0 (diff) | |
parent | c66aa60495c0ef9a709e6904f5d8a099e3bb036a (diff) |
Merge pull request #932 from davidmehren/webpack-4
Upgrade to Webpack 4
Diffstat (limited to 'public/views')
-rw-r--r-- | public/views/includes/header.ejs | 2 | ||||
-rw-r--r-- | public/views/includes/scripts.ejs | 4 |
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> <% } %> |