1. webpack-uglify-parallel
Identical to standard uglify webpack plugin, with an option to build multiple files in parallel
webpack-uglify-parallel
Package: webpack-uglify-parallel
Created by: tradingview
Last modified: Wed, 13 Dec 2023 11:26:14 GMT
Version: 0.1.4
License: MIT
Downloads: 3,335
Repository: https://github.com/tradingview/webpack-uglify-parallel

Install

npm install webpack-uglify-parallel
yarn add webpack-uglify-parallel

webpack-uglify-parallel

This project is deprecated in favor of official uglifyjs plugin, which now supports parallelization

Identical to standard uglify webpack plugin, with an option to build multiple files in parallel

Installation

 npm install --save-dev webpack-uglify-parallel

Usage

In webpack.config.js:

 var os = require('os');
var UglifyJsParallelPlugin = require('webpack-uglify-parallel');

module.exports = {
    /// ... rest of config
    plugins: [
        new UglifyJsParallelPlugin({
            workers: os.cpus().length, // usually having as many workers as cpu cores gives good results
            // other uglify options
        })
    ]
}

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin