Skip to content

Instantly share code, notes, and snippets.

@antontit
Created July 6, 2018 19:30
Show Gist options
  • Save antontit/e36c92670a46b18fd5db038315867a18 to your computer and use it in GitHub Desktop.
Save antontit/e36c92670a46b18fd5db038315867a18 to your computer and use it in GitHub Desktop.

webpack.mix.js

const mix = require('laravel-mix');

mix.setPublicPath('public/build')
    .setResourceRoot('../')
    .js('resources/assets/js/app.js', 'js')
    .sass('resources/assets/sass/app.scss', 'css')
    // .options({
    //     fileLoaderDirs: {
    //         fonts: '../fonts'
    //     }
    // })
    .version();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment