Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Mar 28, 2023 via pnpm
Package summary
Share
0
issues
0
licenses
Package created
2 Aug 2018
Version published
8 Mar 2023
Maintainers
3
Total deps
0
Direct deps
0
License
MIT

Issues

0
This package has no issues

Frequently Asked Questions

What does terser-webpack-plugin do?

The terser-webpack-plugin is a JavaScript minimization plugin for webpack. It utilizes terser to minimize your JavaScript code.

How do you use terser-webpack-plugin?

To use terser-webpack-plugin, you first need to install it using npm, yarn, or pnpm like this:

npm install terser-webpack-plugin --save-dev
yarn add -D terser-webpack-plugin
pnpm add -D terser-webpack-plugin

Then, include the terser-webpack-plugin in your webpack config like this:

const TerserPlugin = require("terser-webpack-plugin");

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [new TerserPlugin()],
  },
};

Finally, run webpack using the method you prefer. The plugin also supports various configurations such as test, include, exclude, parallel, minify, terserOptions, and extractComments.

Where are the terser-webpack-plugin docs?

The terser-webpack-plugin documentation is available on GitHub. The documentation provides a detailed explanation of the plugin's installation process, usage, options, and examples. It also furnishes guidelines on how to contribute to the project.