Skip to content

Instantly share code, notes, and snippets.

@uyab
Created October 19, 2017 09:49
Show Gist options
  • Save uyab/07d66f23ff7f9587cdb6cc0a49a8acda to your computer and use it in GitHub Desktop.
Save uyab/07d66f23ff7f9587cdb6cc0a49a8acda to your computer and use it in GitHub Desktop.
Laravel Mix Configuration
let mix = require('laravel-mix');
require('dotenv').config();
const PROXY_URL = process.env.APP_URL || 'localhost';
/*
|--------------------------------------------------------------------------
| 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')
.sass('resources/assets/sass/app.scss', 'public/css');
mix.browserSync(PROXY_URL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment