From 2a882a3ed15557fa05402a6787859675b604c707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Huchet?= Date: Fri, 15 Jan 2021 14:59:30 +0100 Subject: [PATCH 1/3] doc: webpack v4 needs terser v4 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3b1c47f7..58d6e8f5 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ This plugin uses [terser](https://github.com/terser-js/terser) to minify your Ja If you are using webpack v5 or above you do not need to install this plugin. Webpack v5 comes with the latest `terser-webpack-plugin` out of the box. -To begin, you'll need to install `terser-webpack-plugin`: +To begin when using webpack v4, you'll need to install `terser-webpack-plugin`: ```console -$ npm install terser-webpack-plugin --save-dev +$ npm install terser-webpack-plugin@4 --save-dev ``` Then add the plugin to your `webpack` config. For example: From 3fef51c5daed8bcd5c93175f87ccbd6eda931bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Huchet?= Date: Fri, 15 Jan 2021 15:24:29 +0100 Subject: [PATCH 2/3] chore: fix --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 58d6e8f5..26f920b7 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ This plugin uses [terser](https://github.com/terser-js/terser) to minify your Ja ## Getting Started -If you are using webpack v5 or above you do not need to install this plugin. Webpack v5 comes with the latest `terser-webpack-plugin` out of the box. +If you are using webpack v5 or above you do not need to install this plugin. Webpack v5 comes with the latest `terser-webpack-plugin` out of the box. Using Webpack v4, you have to install terser-webpack-plugin v4. -To begin when using webpack v4, you'll need to install `terser-webpack-plugin`: +To begin, you'll need to install `terser-webpack-plugin`: ```console -$ npm install terser-webpack-plugin@4 --save-dev +$ npm install terser-webpack-plugin --save-dev ``` Then add the plugin to your `webpack` config. For example: From 3b57de62b8109971e054ab423b81d46b6eb8e075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Huchet?= Date: Fri, 15 Jan 2021 15:25:14 +0100 Subject: [PATCH 3/3] chore: format --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 26f920b7..56737981 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This plugin uses [terser](https://github.com/terser-js/terser) to minify your Ja ## Getting Started -If you are using webpack v5 or above you do not need to install this plugin. Webpack v5 comes with the latest `terser-webpack-plugin` out of the box. Using Webpack v4, you have to install terser-webpack-plugin v4. +If you are using webpack v5 or above you do not need to install this plugin. Webpack v5 comes with the latest `terser-webpack-plugin` out of the box. Using Webpack v4, you have to install `terser-webpack-plugin` v4. To begin, you'll need to install `terser-webpack-plugin`: