Load hash based styles in error.html, too

This commit is contained in:
Tarek Becker
2018-11-01 23:31:17 +01:00
parent 4d4eb354b7
commit 70bb81c6eb
5 changed files with 13 additions and 2 deletions

View File

@ -80,6 +80,11 @@ module.exports = merge(common, {
inject: 'body',
chunks: ['vendor', 'app'],
}),
new HtmlWebpackPlugin({
filename: path.resolve(__dirname, '../../public/views/error.html'),
template: path.resolve(__dirname, '../../public/views/error.template.html'),
inject: false,
}),
function () {
this.hooks.done.tap('Done', function (stats) {
if (stats.compilation.errors && stats.compilation.errors.length) {