Laravel Mix Download
This extension provides the possibility to download files for your Mix (v2.1 and up) builds.
First, install the extension.
npm install laravel-mix-dload --save-dev
Then, require it within your
webpack.mix.js file, like so:
const mix = ;;mix;
And you're done! Compile everything down with
npm run prod.
urls is required - all other options are optional. If you don't want to use the paths object you can simply define your base and templates in the url and template options from
||set to false if you don't want to download files, set to true if you always want to download files no matter the env setting.|
||An array of url objects, each with a url and dest:
||The string where the downloaded files need to be saved this overrides the specific url destination setting|