laravel-mix-definitions

1.1.0 • Public • Published

Laravel Mix Definitions
npm npm

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

/laravel-mix-definitions/

    Package Sidebar

    Install

    npm i laravel-mix-definitions

    Weekly Downloads

    66

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    5.13 kB

    Total Files

    4

    Last publish

    Collaborators

    • erutan409