Created
May 29, 2015 15:26
-
-
Save gomako/25935a7db377fe2c1b5a to your computer and use it in GitHub Desktop.
Elixir demo
This file contains hidden or 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'); | |
/* | |
|-------------------------------------------------------------------------- | |
| 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 Less | |
| file for our application, as well as publishing vendor resources. | |
| | |
*/ | |
var paths = { | |
jquery: 'resources/assets/jquery/', | |
js: 'resources/assets/bootstrap-sass-official/assets/javascripts/', | |
styles: 'resources/assets/bootstrap-sass-official/assets/stylesheets/', | |
bsfonts: 'resources/assets/bootstrap-sass-official/assets/fonts/', | |
fonts: 'resources/assets/fonts/' | |
} | |
elixir(function(mix) { | |
mix.sass('app.scss', 'public/css/', paths.styles ) | |
.copy(paths.bsfonts + '/bootstrap/**', 'public/fonts') | |
.copy(paths.fonts + '**', 'public/fonts') | |
.scripts([ | |
paths.jquery + 'dist/jquery.js', | |
paths.js + 'bootstrap.js' | |
], 'public/js/app.js', './'); | |
console.log(paths.styles); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment