Skip to content

Instantly share code, notes, and snippets.

@marcellorg
Created July 28, 2017 03:11
Show Gist options
  • Save marcellorg/bc0a313a28c256fc7573a9eecdec1e27 to your computer and use it in GitHub Desktop.
Save marcellorg/bc0a313a28c256fc7573a9eecdec1e27 to your computer and use it in GitHub Desktop.
const { mix } = require('laravel-mix');
mix.js('resources/assets/js/app.js', 'public/js')
.extract(['jquery','tether','bootstrap'])
.autoload({
jquery: ['$', 'window.jQuery', 'jQuery', 'jquery'],
tether: ['Tether', 'window.Tether']
})
.sass('resources/assets/sass/app.scss', 'public/css')
.copy('resources/assets/images/', 'public/images', false)
.sourceMaps()
.version();
/*
if (mix.inProduction()) {
mix.version();
}
*/
/*
mix.js('resources/assets/js/contact.js', 'public/js')
.sass('resources/assets/sass/site/main.scss', 'public/css/')
.combine(
[
'node_modules/jquery/dist/jquery.slim.js',
'node_modules/bootstrap/dist/js/bootstrap.js'
],
'public/js/vendor.js'
)
.copy('resources/assets/images/', 'public/images/', false)
.version();*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment