From 326f783b6c43bb1f2278c580b7ec03f713394f58 Mon Sep 17 00:00:00 2001 From: Abenezer Abebe Date: Tue, 4 Dec 2018 21:39:46 +0100 Subject: [PATCH] docs: replace UglifyJsPlugin with TerserPlugin in migrate docs --- MIGRATE.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MIGRATE.md b/MIGRATE.md index cc47ba5b368..68fd749e565 100644 --- a/MIGRATE.md +++ b/MIGRATE.md @@ -34,7 +34,7 @@ Given a basic configuration file like so: const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); -const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); +const TerserPlugin = require('terser-webpack-plugin'); const webpack = require('webpack'); module.exports = { @@ -68,7 +68,7 @@ module.exports = { }, plugins: [ - new UglifyJSPlugin(), + new TerserPlugin(), new ExtractTextPlugin('styles-[contentHash].css'), @@ -115,7 +115,7 @@ After it has run, we have our new webpack config file! const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); -const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); +const TerserPlugin = require('terser-webpack-plugin'); const webpack = require('webpack'); module.exports = { @@ -154,7 +154,7 @@ module.exports = { }, plugins: [ - new UglifyJSPlugin(), + new TerserPlugin(), new ExtractTextPlugin('styles-[contentHash].css'),