1.1.0 • Published 5 years ago

laravel-mix-definitions v1.1.0

Weekly downloads
114
License
MIT
Repository
github
Last release
5 years ago

Add and/or update definitions for the webpack build, using Laravel Mix.

Read more about how definitions work with the Define Plugin.

Installation

npm install laravel-mix-definitions --save-dev

Usage

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'
});