Skip to content

Commit

Permalink
docs: replace UglifyJsPlugin with TerserPlugin in migrate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
abenezerabebe authored and sendilkumarn committed Mar 16, 2019
1 parent 33c6185 commit 326f783
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MIGRATE.md
Expand Up @@ -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 = {
Expand Down Expand Up @@ -68,7 +68,7 @@ module.exports = {
},

plugins: [
new UglifyJSPlugin(),
new TerserPlugin(),

new ExtractTextPlugin('styles-[contentHash].css'),

Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -154,7 +154,7 @@ module.exports = {
},

plugins: [
new UglifyJSPlugin(),
new TerserPlugin(),

new ExtractTextPlugin('styles-[contentHash].css'),

Expand Down

0 comments on commit 326f783

Please sign in to comment.