esbuild-webpack-plugin
Use esbuild as minifier.
Last updated 5 years ago by sorrycc .
MIT · Original npm · Tarball · package.json
$ cnpm install esbuild-webpack-plugin 
SYNC missed versions from official npm registry.

esbuild-webpack-plugin

Use esbuild as minifier for webpack.

Why is this package?

彻底告别编译 OOM,用 esbuild 做压缩器

Install

$ yarn add esbuild-webpack-plugin --dev

Webpack config

const ESBuildPlugin = require('esbuild-webpack-plugin').default;

module.exports = {
  optimization: {
    minimizer: [
      new ESBuildPlugin(),
      /**
       * Or customize ESBuild options like below:
       *
       * new ESBuildPlugin({target: "es5"}),
       *
       * For details, please refer: https://github.com/evanw/esbuild
       */
    ],
  },
};

Test

# Get prepared
$ yarn && yarn build

# Minify with terser
$ yarn build:example

# Minify with esbuild
$ yarn build:example:esbuild

# Do not minify
$ yarn build:example:nocompress

LICENSE

MIT

Current Tags

  • 1.1.0                                ...           latest (5 years ago)

9 Versions

  • 1.1.0                                ...           5 years ago
  • 1.0.5                                ...           6 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 1.0.0-beta.5                                ...           6 years ago
  • 1.0.0-beta.4                                ...           6 years ago
  • 1.0.0-beta.3                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 5
Last Month 4
Dependencies (1)
Dev Dependencies (17)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |