When I run gulp now everything looks as if it runs ok but nothing is compiled to the public directory. I wonder if this is something to do with the node/windows thing again or if (more likely) I'm doing it wrong. I tried a simple example first to mix two css files as is demonstrated in the https://laracasts.com/series/whats-new-in-laravel-5/episodes/10
Here is gulpfile i tried for that:
elixir(function(mix) {
mix.styles([
'public/css/one.css',
'public/css/two.css'
])
});
I no longer have the info gulp printed out for that however it looked like it was working but there was no new all.css in public like happened in the video.
Then I tried this tutorial on Laravel News for setting up Bootstrap: https://laravel-news.com/2014/10/setting-laravel-elixr-bootstrap/
Here is the gulp file for that:
var paths = {
'jquery': './vendor/bower_components/jquery/',
'bootstrap': './vendor/bower_components/bootstrap-sass-official/assets/'
}
elixir(function(mix) {
mix.sass("style.scss", 'public/css/', {includePaths: [paths.bootstrap + 'stylesheets/']})
.copy(paths.bootstrap + 'fonts/bootstrap/**', 'public/fonts')
.scripts([
paths.jquery + "dist/jquery.js",
paths.bootstrap + "javascripts/bootstrap.js"
], './', 'public/js/app.js');
});
and here is the output from gulp:
vagrant@homestead:~/Code/dv5$ gulp
[21:30:57] Using gulpfile ~/Code/dv5/gulpfile.js
[21:30:57] Starting 'default'...
[21:30:57] Starting 'sass'...
[21:31:00] Finished 'default' after 2.34 s
[21:31:00] Finished 'sass' after 2.35 s
[21:31:00] Starting 'copy'...
[21:31:00] Finished 'copy' after 6.51 ms
[21:31:00] Starting 'scripts'...
[21:31:00] Finished 'scripts' after 172 ms
The copy seems to work ok but not the sass or scripts bits. There is no style.scss file in the bootstrap directory - I don't know if I'm supposed to put one there or not...