All Projects → lodash → Lodash Webpack Plugin

lodash / Lodash Webpack Plugin

Licence: other
Smaller modular Lodash builds.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Lodash Webpack Plugin

Webpack Library Example
An example of how to author libraries using webpack.
Stars: ✭ 251 (-77.31%)
Mutual labels:  webpack, lodash
Feathers Vue
A boiler plate template using Feathers with Email Verification, Vue 2 with Server Side Rendering, stylus, scss, jade, babel, webpack, ES 6-8, login form, user authorization, and SEO
Stars: ✭ 195 (-82.37%)
Mutual labels:  webpack, lodash
Awesome Vue Cli3 Example
🦅 Awesome example for rapid Vue.js development using vue-cli3 .
Stars: ✭ 160 (-85.53%)
Mutual labels:  webpack, lodash
Webpack Boilerplate
A minimal webpack 5 boilerplate with only Babel, SASS and lodash (optional) on board
Stars: ✭ 404 (-63.47%)
Mutual labels:  webpack, lodash
Chatinder
Unofficial desktop messaging client for Tinder.
Stars: ✭ 55 (-95.03%)
Mutual labels:  webpack
Js Toolbox
CLI tool to simplify the development of JavaScript apps/libraries with little to no configuration. (WORK IN PROGRESS/PACKAGE NOT PUBLISHED).
Stars: ✭ 53 (-95.21%)
Mutual labels:  webpack
Webpack Tutorial
《Webpack 从零入门到工程化实战》专栏源码
Stars: ✭ 53 (-95.21%)
Mutual labels:  webpack
Rambda
Faster and smaller alternative to Ramda
Stars: ✭ 1,066 (-3.62%)
Mutual labels:  lodash
Prestashop
Free PWA & SPA for PrestaShop
Stars: ✭ 59 (-94.67%)
Mutual labels:  webpack
Egg React Typescript Boilerplate
Egg React TypeScript Server Side Render (SSR) / Client Side Render (CSR)
Stars: ✭ 56 (-94.94%)
Mutual labels:  webpack
Egg View React Ssr
Egg React Server Side Render (SSR) Plugin
Stars: ✭ 55 (-95.03%)
Mutual labels:  webpack
Interactive Image
A jQuery plugin to embed interactive images on your website.
Stars: ✭ 53 (-95.21%)
Mutual labels:  webpack
React Cool Starter
😎 🐣 A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
Stars: ✭ 1,083 (-2.08%)
Mutual labels:  webpack
React Mobx Ts Antd
A simple empty project build with react、react-router、mobx、antd in typescript.
Stars: ✭ 53 (-95.21%)
Mutual labels:  webpack
Phaser Boilerplate
Phaser ES6 Boilerplate
Stars: ✭ 56 (-94.94%)
Mutual labels:  webpack
Eslint Loader
[DEPRECATED] A ESlint loader for webpack
Stars: ✭ 1,067 (-3.53%)
Mutual labels:  webpack
Vue Multiple Pages
A multiple Pages Starter use Vue-cli3
Stars: ✭ 1,079 (-2.44%)
Mutual labels:  webpack
Craco Alias
A craco plugin for automatic aliases generation for Webpack and Jest
Stars: ✭ 56 (-94.94%)
Mutual labels:  webpack
React Webpack Tutorial
This is a tutorial on how to get started developing a client side application using ReactJS, Webpack and Npm
Stars: ✭ 54 (-95.12%)
Mutual labels:  webpack
Ts React Redux Startup
TypeScript redux configuration project, check also https://github.com/brunolm/react-how-to
Stars: ✭ 54 (-95.12%)
Mutual labels:  webpack

lodash-webpack-plugin

Create smaller Lodash builds by replacing feature sets of modules with noop, identity, or simpler alternatives.

This plugin complements babel-plugin-lodash by shrinking its cherry-picked builds even further!

DISCLAIMER: Using this plugin without enabling the proper feature sets may cause lodash functions to behave in unexpected ways. Methods may appear to work, however they might return incorrect results.

Install

$ npm i --save lodash
$ npm i --save-dev lodash-webpack-plugin babel-core babel-loader babel-plugin-lodash babel-preset-env webpack

Example

demo

Usage

webpack.config.js
var LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
var webpack = require('webpack');

module.exports = {
  'module': {
    'rules': [{
      'use': 'babel-loader',
      'test': /\.js$/,
      'exclude': /node_modules/,
      'options': {
        'plugins': ['lodash'],
        'presets': [['env', { 'modules': false, 'targets': { 'node': 4 } }]]
      }
    }]
  },
  'plugins': [
    new LodashModuleReplacementPlugin,
    new webpack.optimize.UglifyJsPlugin
  ]
};

Opt-in to features with an options object:

new LodashModuleReplacementPlugin({
  'collections': true,
  'paths': true
});

Feature Sets

The following features are removed by default (biggest savings first):

Feature Description
shorthands Iteratee shorthands for _.property, _.matches, & _.matchesProperty.
cloning Support “clone” methods & cloning source objects.
currying Support “curry” methods.
caching Caches for methods like _.cloneDeep, _.isEqual, & _.uniq.
collections Support objects in “Collection” methods.
exotics Support objects like buffers, maps, sets, symbols, typed arrays, etc.
guards Guards for host objects, sparse arrays, & other edge cases.
metadata Metadata to reduce wrapping of bound, curried, & partially applied functions.
(requires currying)
deburring Support deburring letters.
unicode Support Unicode symbols.
chaining Components to support chain sequences.
memoizing Support _.memoize & memoization.
coercions Support for coercing values to integers, numbers, & strings.
flattening Support “flatten” methods & flattening rest arguments.
paths Deep property path support for methods like _.get, _.has, & _.set.
placeholders Argument placeholder support for “bind”, “curry”, & “partial” methods.
(requires currying)
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].