diff options
author | David Mehren | 2018-07-02 22:24:56 +0200 |
---|---|---|
committer | David Mehren | 2018-09-06 17:26:09 +0200 |
commit | 29a3813adaa54adaafab1678e30d754ecf0c9e3b (patch) | |
tree | 5f6f0c79c1f6207539a448dbd248c95cdea4a1e5 /public/views | |
parent | 0017ddd3101f7c9445a70e8b38bf0046a0730f16 (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.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> <% } %> |