Skip to content

Instantly share code, notes, and snippets.

@jjab2020
Last active October 9, 2019 03:21
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 jjab2020/66af75904cdaeee5152f05da3a6f31e3 to your computer and use it in GitHub Desktop.
Save jjab2020/66af75904cdaeee5152f05da3a6f31e3 to your computer and use it in GitHub Desktop.
webpack configuration file
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 your application, as well as bundling up your JS files.
|
*/
mix.js('./src/app.js', './dist/').sass('./src/app.scss', './dist/');
mix.setResourceRoot('../');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment