Created
July 28, 2017 03:11
-
-
Save marcellorg/bc0a313a28c256fc7573a9eecdec1e27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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