lundi 1 mai 2017

Setup external libraries with laravel mix

I need to use an external library on web pack with laravel-mix. On web pack I should do something like this as described in the webpack docs

{
    output: {
        // export itself to a global var
        libraryTarget: "var",
        // name of the global var: "Foo"
        library: "Foo"
    },
    externals: {
        // require("jquery") is external and available
        //  on the global var jQuery
        "jquery": "jQuery"
    }
}

But I can do this with laravel mix?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire