Skip to content

Instantly share code, notes, and snippets.

@nissicreative
Last active August 7, 2017 17:07
Show Gist options
  • Save nissicreative/94ca8b282a0ed863c50c75565cd197b6 to your computer and use it in GitHub Desktop.
Save nissicreative/94ca8b282a0ed863c50c75565cd197b6 to your computer and use it in GitHub Desktop.
Laravel Webpack Mix
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/assets/js/app.js', 'public/js')
.extract(['vue', 'jquery'])
.sass('resources/assets/sass/app.scss', 'public/css')
.sass('resources/assets/sass/admin.scss', 'public/css')
.browserSync('mysite.dev');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment