# laravel-mix-definitions

> Plugin for adding custom definitions for DefinePlugin.

Latest version **1.1.0** (published 2019-10-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install laravel-mix-definitions
pnpm add laravel-mix-definitions
yarn add laravel-mix-definitions
bun add laravel-mix-definitions
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-10-26 |
| First published | 2019-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michael Keyser |
| Maintainers | erutan409 |
| Keywords | laravel, mix, plugin, definitions, DefinePlugin |

## Links

- npm: https://www.npmjs.com/package/laravel-mix-definitions
- Repository: https://github.com/Erutan409/laravel-mix-definitions
- Homepage: https://github.com/Erutan409/laravel-mix-definitions#readme
- Issues: https://github.com/Erutan409/laravel-mix-definitions/issues
- npm.io page: https://npm.io/package/laravel-mix-definitions

## Recent versions

- 1.1.0 (latest) — 2019-10-26
- 1.0.0 — 2019-10-20

## README

<h1 align="center">
    Laravel Mix Definitions
    <br>
    <a href="https://www.npmjs.com/package/laravel-mix-definitions"><img src="https://img.shields.io/npm/v/laravel-mix-definitions.svg?style=for-the-badge" alt="npm" /></a> <a href="https://www.npmjs.com/package/laravel-mix-definitions"><img src="https://img.shields.io/npm/dt/laravel-mix-definitions.svg?style=for-the-badge" alt="npm" /></a>
</h1>

Add and/or update definitions for the webpack build, using [Laravel Mix](https://laravel-mix.com/).

Read more about how definitions work with the [Define Plugin](https://webpack.js.org/plugins/define-plugin/).

## Installation

```bash
npm install laravel-mix-definitions --save-dev
```

## Usage

```js
const mix = require('laravel-mix');
require('laravel-mix-definitions');

mix.definition('$', 'jQuery');
mix.definition('_', 'lodash');

// an object can be passed, too:
mix.definition({
    $: 'jQuery',
    _: 'lodash'
});
```

---
_Source: https://npm.io/package/laravel-mix-definitions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
