diff --git a/public/views/includes/header.ejs b/public/views/includes/header.ejs index 89f3a0d1..942a89f9 100644 --- a/public/views/includes/header.ejs +++ b/public/views/includes/header.ejs @@ -1,3 +1,3 @@ <% for (var css in htmlWebpackPlugin.files.css) { %> - + <% } %> diff --git a/public/views/includes/scripts.ejs b/public/views/includes/scripts.ejs index 4eec75e8..20d4003a 100644 --- a/public/views/includes/scripts.ejs +++ b/public/views/includes/scripts.ejs @@ -1,3 +1,3 @@ <% for (var chunk in htmlWebpackPlugin.files.chunks) { %> - + <% } %> diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 7d5c3e16..20a21b62 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -329,7 +329,8 @@ module.exports = { output: { path: path.join(__dirname, 'public/build'), publicPath: '/build/', - filename: '[name].js' + filename: '[name].js', + baseUrl: '<%- url %>' }, resolve: {