1.0.0 • Published 3 years ago

swc-webpack-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

swc-webpack-plugin

Minify bundle with swc in webpack

Installation

$ npm i --save-dev @swc/core swc-webpack-plugin webpack

Usage

const { SWCMinifyPlugin } = require('swc-webpack-plugin');

module.exports = {
  ...,

  optimization: {
    minimize: true,
    minimizer: [new SWCMinifyPlugin()],
  },
};

Options

SWCMinifyPlugin

Supports all swc configuration

sync

Type: boolean

Run in sync mode