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:
parent
da2822c88d
commit
a92d51731d
@ -32,7 +32,6 @@
|
|||||||
"es6-shim": "^0.35.3",
|
"es6-shim": "^0.35.3",
|
||||||
"expect.js": "~0.2.0",
|
"expect.js": "~0.2.0",
|
||||||
"expose-loader": "^0.7.3",
|
"expose-loader": "^0.7.3",
|
||||||
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
|
||||||
"file-loader": "^1.1.11",
|
"file-loader": "^1.1.11",
|
||||||
"fork-ts-checker-webpack-plugin": "^0.4.2",
|
"fork-ts-checker-webpack-plugin": "^0.4.2",
|
||||||
"gaze": "^1.1.2",
|
"gaze": "^1.1.2",
|
||||||
@ -63,7 +62,7 @@
|
|||||||
"mobx-react-devtools": "^4.2.15",
|
"mobx-react-devtools": "^4.2.15",
|
||||||
"mocha": "^4.0.1",
|
"mocha": "^4.0.1",
|
||||||
"ng-annotate-loader": "^0.6.1",
|
"ng-annotate-loader": "^0.6.1",
|
||||||
"ng-annotate-webpack-plugin": "^0.2.1-pre",
|
"ng-annotate-webpack-plugin": "^0.3.0",
|
||||||
"ngtemplate-loader": "^2.0.1",
|
"ngtemplate-loader": "^2.0.1",
|
||||||
"npm": "^5.4.2",
|
"npm": "^5.4.2",
|
||||||
"optimize-css-assets-webpack-plugin": "^4.0.2",
|
"optimize-css-assets-webpack-plugin": "^4.0.2",
|
||||||
|
@ -5,7 +5,6 @@ const common = require('./webpack.common.js');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||||
const ExtractTextPlugin = require("extract-text-webpack-plugin");
|
|
||||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||||
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||||
|
@ -81,7 +81,7 @@ module.exports = merge(common, {
|
|||||||
chunks: ['vendor', 'app'],
|
chunks: ['vendor', 'app'],
|
||||||
}),
|
}),
|
||||||
function () {
|
function () {
|
||||||
this.plugin("done", function (stats) {
|
this.hooks.done.tap('Done', function (stats) {
|
||||||
if (stats.compilation.errors && stats.compilation.errors.length) {
|
if (stats.compilation.errors && stats.compilation.errors.length) {
|
||||||
console.log(stats.compilation.errors);
|
console.log(stats.compilation.errors);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
15
yarn.lock
15
yarn.lock
@ -4105,15 +4105,6 @@ extglob@^2.0.4:
|
|||||||
snapdragon "^0.8.1"
|
snapdragon "^0.8.1"
|
||||||
to-regex "^3.0.1"
|
to-regex "^3.0.1"
|
||||||
|
|
||||||
extract-text-webpack-plugin@^4.0.0-beta.0:
|
|
||||||
version "4.0.0-beta.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/extract-text-webpack-plugin/-/extract-text-webpack-plugin-4.0.0-beta.0.tgz#f7361d7ff430b42961f8d1321ba8c1757b5d4c42"
|
|
||||||
dependencies:
|
|
||||||
async "^2.4.1"
|
|
||||||
loader-utils "^1.1.0"
|
|
||||||
schema-utils "^0.4.5"
|
|
||||||
webpack-sources "^1.1.0"
|
|
||||||
|
|
||||||
extract-zip@^1.6.5:
|
extract-zip@^1.6.5:
|
||||||
version "1.6.7"
|
version "1.6.7"
|
||||||
resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.6.7.tgz#a840b4b8af6403264c8db57f4f1a74333ef81fe9"
|
resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.6.7.tgz#a840b4b8af6403264c8db57f4f1a74333ef81fe9"
|
||||||
@ -7661,9 +7652,9 @@ ng-annotate-loader@^0.6.1:
|
|||||||
normalize-path "2.0.1"
|
normalize-path "2.0.1"
|
||||||
source-map "0.5.6"
|
source-map "0.5.6"
|
||||||
|
|
||||||
ng-annotate-webpack-plugin@^0.2.1-pre:
|
ng-annotate-webpack-plugin@^0.3.0:
|
||||||
version "0.2.1-pre"
|
version "0.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/ng-annotate-webpack-plugin/-/ng-annotate-webpack-plugin-0.2.1-pre.tgz#40d9aa8cd214e30e3125a8481634ab0dd9b3dd68"
|
resolved "https://registry.yarnpkg.com/ng-annotate-webpack-plugin/-/ng-annotate-webpack-plugin-0.3.0.tgz#2e7f5e29c6a4ce26649edcb06c1213408b35b84a"
|
||||||
dependencies:
|
dependencies:
|
||||||
ng-annotate "^1.2.1"
|
ng-annotate "^1.2.1"
|
||||||
webpack-core "^0.6.5"
|
webpack-core "^0.6.5"
|
||||||
|
Loading…
Reference in New Issue
Block a user