# vue-cli-plugin-lodash

> vue-cli plugin for lodash

Latest version **0.1.4** (published 2020-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-cli-plugin-lodash
pnpm add vue-cli-plugin-lodash
yarn add vue-cli-plugin-lodash
bun add vue-cli-plugin-lodash
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2020-12-17 |
| First published | 2020-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jasery |
| Maintainers | jasery |
| Keywords | vue-cli, plugin, lodash |

## Links

- npm: https://www.npmjs.com/package/vue-cli-plugin-lodash
- Repository: https://github.com/jasery/vue-cli-plugin-lodash
- Homepage: https://github.com/jasery/vue-cli-plugin-lodash#readme
- Issues: https://github.com/jasery/vue-cli-plugin-lodash/issues
- npm.io page: https://npm.io/package/vue-cli-plugin-lodash

## Dependencies (2)

- [babel-plugin-lodash](https://npm.io/package/babel-plugin-lodash.md) ^3.3.4
- [lodash-webpack-plugin](https://npm.io/package/lodash-webpack-plugin.md) ^0.11.5

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2020-12-17
- 0.1.3 — 2020-06-17
- 0.1.2 — 2020-06-17
- 0.1.1 — 2020-06-17
- 0.1.0 — 2020-06-03
- 0.0.4 — 2020-06-03
- 0.0.3 — 2020-06-02
- 0.0.2 — 2020-06-02
- 0.0.1 — 2020-06-02

## README

# vue-cli-plugin-lodash
[![NPM](https://img.shields.io/npm/v/vue-cli-plugin-lodash.svg)](https://www.npmjs.com/package/vue-cli-plugin-lodash)

基于Vue CLI 3 的lodash插件，自动配置`babel-plugin-lodash`插件和`lodash-webpack-plugin`以达到最小的压缩效果，支持`ProvidePlugin`，项目无需引入(开启`ProvidePlugin`则无法按需引入)

### 安装
```bash
vue add lodash
```

### 使用

```javascript
import _ from "lodash"

_.chunk(['a', 'b', 'c', 'd'], 2);
```
> 如果开启`ProvidePlugin`则无需import

### 配置
```javascript
// vue.config.js
module.exports = {
    pluginOptions: {
        lodash: {
            // 是否开启ProvidePlugin, 默认false
            provide: false
        }
    }
}

```

### 对比
| 普通引入 | vue-cli-plugin-lodash |
| :----: |:-----:|
| ![image](https://user-images.githubusercontent.com/20091279/83642021-e1562d00-a5e0-11ea-9d28-a1817781d85c.png) | ![image](https://user-images.githubusercontent.com/20091279/83641894-b966c980-a5e0-11ea-9353-54d3cac32e03.png) |

---
_Source: https://npm.io/package/vue-cli-plugin-lodash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
