From e1ab8d05185bf791955f72e99dc3a218d736be57 Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Mon, 4 Oct 2021 09:41:47 -0700 Subject: [PATCH] docs(readme): terser-js to terser org rename (#450) --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index f70266e..9687223 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ # terser-webpack-plugin -This plugin uses [terser](https://github.com/terser-js/terser) to minify/minimize your JavaScript. +This plugin uses [terser](https://github.com/terser/terser) to minify/minimize your JavaScript. ## Getting Started @@ -56,15 +56,15 @@ Using supported `devtool` values enable source map generation. ## Options -| Name | Type | Default | Description | -| :---------------------------------------: | :-----------------------------------------------------------------------------: | :-------------------------------------------------------------: | :--------------------------------------------------------------------------- | -| **[`test`](#test)** | `String\|RegExp\|Array` | `/\.m?js(\?.*)?$/i` | Test to match files against. | -| **[`include`](#include)** | `String\|RegExp\|Array` | `undefined` | Files to include. | -| **[`exclude`](#exclude)** | `String\|RegExp\|Array` | `undefined` | Files to exclude. | -| **[`parallel`](#parallel)** | `Boolean\|Number` | `true` | Use multi-process parallel running to improve the build speed. | -| **[`minify`](#minify)** | `Function` | `TerserPlugin.terserMinify` | Allows you to override default minify function. | -| **[`terserOptions`](#terseroptions)** | `Object` | [`default`](https://github.com/terser-js/terser#minify-options) | Terser [minify options](https://github.com/terser-js/terser#minify-options). | -| **[`extractComments`](#extractcomments)** | `Boolean\|String\|RegExp\|Function<(node, comment) -> Boolean\|Object>\|Object` | `true` | Whether comments shall be extracted to a separate file. | +| Name | Type | Default | Description | +| :---------------------------------------: | :-----------------------------------------------------------------------------: | :----------------------------------------------------------: | :------------------------------------------------------------------------ | +| **[`test`](#test)** | `String\|RegExp\|Array` | `/\.m?js(\?.*)?$/i` | Test to match files against. | +| **[`include`](#include)** | `String\|RegExp\|Array` | `undefined` | Files to include. | +| **[`exclude`](#exclude)** | `String\|RegExp\|Array` | `undefined` | Files to exclude. | +| **[`parallel`](#parallel)** | `Boolean\|Number` | `true` | Use multi-process parallel running to improve the build speed. | +| **[`minify`](#minify)** | `Function` | `TerserPlugin.terserMinify` | Allows you to override default minify function. | +| **[`terserOptions`](#terseroptions)** | `Object` | [`default`](https://github.com/terser/terser#minify-options) | Terser [minify options](https://github.com/terser/terser#minify-options). | +| **[`extractComments`](#extractcomments)** | `Boolean\|String\|RegExp\|Function<(node, comment) -> Boolean\|Object>\|Object` | `true` | Whether comments shall be extracted to a separate file. | ### `test` @@ -188,7 +188,7 @@ Type: `Function` Default: `TerserPlugin.terserMinify` Allows you to override default minify function. -By default plugin uses [terser](https://github.com/terser-js/terser) package. +By default plugin uses [terser](https://github.com/terser/terser) package. Useful for using and testing unpublished versions or forks. > ⚠️ **Always use `require` inside `minify` function when `parallel` option enabled**. @@ -245,9 +245,9 @@ module.exports = { ### `terserOptions` Type: `Object` -Default: [default](https://github.com/terser-js/terser#minify-options) +Default: [default](https://github.com/terser/terser#minify-options) -Terser [options](https://github.com/terser-js/terser#minify-options). +Terser [options](https://github.com/terser/terser#minify-options). **webpack.config.js**