Skip to content

Instantly share code, notes, and snippets.

@martinbean
Created May 17, 2018 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinbean/193bb1ad10ef851a35175f84498f4f07 to your computer and use it in GitHub Desktop.
Save martinbean/193bb1ad10ef851a35175f84498f4f07 to your computer and use it in GitHub Desktop.
Vendor library extraction in Laravel Mix
let mix = require('laravel-mix');
mix.sass('resources/assets/sass/app.scss', 'public/css')
.js('resources/assets/js/app.js', 'public/js')
.js('resources/assets/js/channel-admin.js', 'public/js')
.js('resources/assets/js/video.js', 'public/js')
.extract(['jquery', 'bootstrap'])
.options({ processCssUrls: false })
.sourceMaps();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment