mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Webpack tapable plugin deprecation (#12960)
* Remove unrequired extract-text-webpack-plugin * Update ngAnnotate to avoid deprecation warning * Avoid deprecation warning (Tapable.plugin -> hooks)
This commit is contained in:
committed by
Torkel Ödegaard
parent
da2822c88d
commit
a92d51731d
@@ -5,7 +5,6 @@ const common = require('./webpack.common.js');
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
|
@@ -81,7 +81,7 @@ module.exports = merge(common, {
|
||||
chunks: ['vendor', 'app'],
|
||||
}),
|
||||
function () {
|
||||
this.plugin("done", function (stats) {
|
||||
this.hooks.done.tap('Done', function (stats) {
|
||||
if (stats.compilation.errors && stats.compilation.errors.length) {
|
||||
console.log(stats.compilation.errors);
|
||||
process.exit(1);
|
||||
|
Reference in New Issue
Block a user