Skip to content

Commit 326f783

Browse files
abenezerabebesendilkumarn
authored andcommittedMar 16, 2019
docs: replace UglifyJsPlugin with TerserPlugin in migrate docs
1 parent 33c6185 commit 326f783

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎MIGRATE.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Given a basic configuration file like so:
3434
const ExtractTextPlugin = require('extract-text-webpack-plugin');
3535
const HtmlWebpackPlugin = require('html-webpack-plugin');
3636
const path = require('path');
37-
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
37+
const TerserPlugin = require('terser-webpack-plugin');
3838
const webpack = require('webpack');
3939

4040
module.exports = {
@@ -68,7 +68,7 @@ module.exports = {
6868
},
6969

7070
plugins: [
71-
new UglifyJSPlugin(),
71+
new TerserPlugin(),
7272

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

@@ -115,7 +115,7 @@ After it has run, we have our new webpack config file!
115115
const ExtractTextPlugin = require('extract-text-webpack-plugin');
116116
const HtmlWebpackPlugin = require('html-webpack-plugin');
117117
const path = require('path');
118-
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
118+
const TerserPlugin = require('terser-webpack-plugin');
119119
const webpack = require('webpack');
120120

121121
module.exports = {
@@ -154,7 +154,7 @@ module.exports = {
154154
},
155155

156156
plugins: [
157-
new UglifyJSPlugin(),
157+
new TerserPlugin(),
158158

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

0 commit comments

Comments
 (0)
Please sign in to comment.