youzan / Fast Uglifyjs Plugin
hight performance uglify plugin for webpack
Stars: ✭ 72
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Fast Uglifyjs Plugin
Bundle Buddy Webpack Plugin
🐐🐐🐐🐐 bundle-buddy-webpack-plugin 🐐🐐🐐🐐
Stars: ✭ 199 (+176.39%)
Mutual labels: webpack, performance
Awesome Bundle Size
📝 An awesome list of tools and techniques to make your web bundle size smaller and your web apps load faster.
Stars: ✭ 118 (+63.89%)
Mutual labels: webpack, performance
Webpack.js.org
Repository for webpack documentation and more!
Stars: ✭ 2,049 (+2745.83%)
Mutual labels: webpack, performance
Webpack Lighthouse Plugin
A Webpack plugin for Lighthouse
Stars: ✭ 271 (+276.39%)
Mutual labels: webpack, performance
Webpack Libs Optimizations
Using a library in your webpack project? Here’s how to optimize it
Stars: ✭ 3,187 (+4326.39%)
Mutual labels: webpack, performance
Bundlephobia
🏋️ Find out the cost of adding a new frontend dependency to your project
Stars: ✭ 6,640 (+9122.22%)
Mutual labels: webpack, performance
Happypack
Happiness in the form of faster webpack build times.
Stars: ✭ 4,232 (+5777.78%)
Mutual labels: webpack, performance
Import Cost
displays the import size of the package you are importing inside the code editor
Stars: ✭ 1,021 (+1318.06%)
Mutual labels: webpack, performance
Md5 Simd
Accelerate aggregated MD5 hashing performance up to 8x for AVX512 and 4x for AVX2. Useful for server applications that need to compute many MD5 sums in parallel.
Stars: ✭ 71 (-1.39%)
Mutual labels: performance
Node Blog
🔥✨ A react blog project base on nodejs, nestjs, mongoose, typescript, react, ant-design,nextjs
Stars: ✭ 69 (-4.17%)
Mutual labels: webpack
Django Webpacker
A django compressor tool that bundles css, js files to a single css, js file with webpack and updates your html files with respective css, js file path.
Stars: ✭ 69 (-4.17%)
Mutual labels: webpack
Angular Cli Webpack
Webpack configuration modifier for @angular/cli
Stars: ✭ 72 (+0%)
Mutual labels: webpack
Flask React Boilerplate
Simple boilerplate for a Flask backend and React client
Stars: ✭ 69 (-4.17%)
Mutual labels: webpack
Query Monitor
The Developer Tools Panel for WordPress
Stars: ✭ 1,156 (+1505.56%)
Mutual labels: performance
Jsperf.com
jsperf.com v2. https://github.com/h5bp/lazyweb-requests/issues/174
Stars: ✭ 1,178 (+1536.11%)
Mutual labels: performance
Spindle
Scalable dynamic library and python loading in HPC environments
Stars: ✭ 71 (-1.39%)
Mutual labels: performance
Datatable
A Python package for manipulating 2-dimensional tabular data structures
Stars: ✭ 1,166 (+1519.44%)
Mutual labels: performance
FastUglifyJsPlugin
Introduction
compatible with webpack 2
The uglify process of building project in production environment is very time consuming. It could take up to 70% of the build time. FastUglifyJsPlugin have multi-process and cache feature comparing to webpack's UglifyJsPlugin. Multi-process can utilize multicore cpu's caculation capability. Cache can minimize the need to complie code. Below is a set of performance testing data. FastUglifyJsPlugin has a way better performace.
plugin | time |
---|---|
webpack.optimize.UglifyJsPlugin | 7.4 min |
FastUglifyJsPlugin without cache | 4.45 min |
FastUglifyJsPlugin with cache | 36 s |
test sample:29 entry,2615 modules
test environment:MacBook Pro,4 core cpu,8g memory
Installation
npm i fast-uglifyjs-plugin --save
# or
yarn add fast-uglifyjs-plugin
Configuration
FastUglifyJsPlugin is base on webpack.optimize.UglifyJsPlugin. They have the same usage except for a few extra configuration.
var FastUglifyJsPlugin = require('fast-uglifyjs-plugin');
module.exports = {
entry: {...},
output: {...},
plugins: [new FastUglifyJsPlugin({
compress: {
warnings: false
},
// set debug as true to output detail cache information
debug: true,
// enable cache by default to improve uglify performance. set false to turn it off
cache: false,
// root directory is the default cache path. it can be configured by following setting
cacheFolder: path.resolve(__dirname, '.otherFolder'),
// num of worker process default ,os.cpus().length
workerNum: 2
})]
};
Licence
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].