Created
January 11, 2016 19:39
-
-
Save noxify/c01fa9c84cd9b9ec69e3 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') | |
.scripts([ | |
paths.bower + paths.jquery + "dist/jquery.js", | |
paths.bower + paths.bootstrap + "dist/js/bootstrap.js", | |
paths.assets + paths.restooock + 'js/main.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