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:
Pierre GIRAUD
2018-08-20 11:55:29 +02:00
committed by Torkel Ödegaard
parent da2822c88d
commit a92d51731d
4 changed files with 5 additions and 16 deletions

View File

@@ -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;

View File

@@ -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);