|
|
@@ -71,15 +71,20 @@ module.exports = merge(common, {
|
|
|
|
|
|
plugins: [
|
|
|
new MiniCssExtractPlugin({
|
|
|
- filename: "grafana.[name].css"
|
|
|
+ filename: "grafana.[name].[hash].css"
|
|
|
}),
|
|
|
new ngAnnotatePlugin(),
|
|
|
new HtmlWebpackPlugin({
|
|
|
filename: path.resolve(__dirname, '../../public/views/index.html'),
|
|
|
- template: path.resolve(__dirname, '../../public/views/index.template.html'),
|
|
|
+ template: path.resolve(__dirname, '../../public/views/index-template.html'),
|
|
|
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) {
|