Skip to content

Instantly share code, notes, and snippets.

@lukearmstrong
Created December 11, 2014 16:14
Show Gist options
  • Save lukearmstrong/cfe89b0791b1d9928d03 to your computer and use it in GitHub Desktop.
Save lukearmstrong/cfe89b0791b1d9928d03 to your computer and use it in GitHub Desktop.
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
elixir(function(mix) {
mix
.sass('app.scss')
.version('public/css/app.css')
.copy(
'vendor/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/',
'public/fonts/'
)
.copy(
'vendor/bower_components/jquery/dist/jquery.js',
'public/js/jquery.js'
)
.scriptsIn(
'vendor/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/',
'public/js/bootstrap.js'
)
.scripts([
'jquery.js',
'bootstrap.js'
],
'public/js',
'public/js/app.js'
)
.version('public/js/app.js');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment