Created
January 12, 2016 23:57
-
-
Save noxify/53ba108c3321912f84bf 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
var elixir = require('laravel-elixir'); | |
//set production mode by default | |
elixir.config.production = true; | |
elixir(function(mix) { | |
var paths = { | |
'bower' : './bower_components/', | |
'assets' : 'resources/assets/', | |
'jquery' : 'jquery/', | |
'bootstrap' : 'bootstrap/', | |
'restooock' : 'restooock/' | |
}; | |
mix.less('app.less') | |
.copy(paths.bower + paths.bootstrap + 'dist/fonts/**', 'public/fonts') | |
.copy(paths.assets + paths.restooock + 'fonts/**', 'public/fonts') | |
.copy(paths.assets + paths.restooock + 'img/**', 'public/img') | |
.scripts([ | |
paths.bower + paths.jquery + "dist/jquery.js", | |
paths.bower + paths.bootstrap + "dist/js/bootstrap.js", | |
paths.assets + paths.restooock + 'js/general.js', | |
paths.assets + paths.restooock + 'js/login_register.js', | |
paths.assets + paths.restooock + 'js/subscriptions.js' | |
], 'public/js/app.js', paths.assets) | |
.version(['css/app.css', 'js/app.js']); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment