I am trying to get Elixir work but for some reason it is not putting the files in the correct directory; but its creating a new js and css folder in the main directory.
Instead of the output going to public/css or public/js its like:
app/ bootstrap/ css/ ...... js/
This is the gulpfile.js
var elixir = require('laravel-elixir');
require('./tasks/angular.task.js');
require('./tasks/bower.task.js');
require('laravel-elixir-livereload');
/*
|--------------------------------------------------------------------------
| 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.
|
*/
elixir(function(mix){
mix
.bower()
.angular('./angular/')
.less('./angular/**/*.less', 'public/css')
//.sass('./angular/**/*.scss', 'public/css')
.copy('./angular/app/**/*.html', 'public/views/app/')
.copy('./angular/directives/**/*.html', 'public/views/directives/')
.copy('./angular/dialogs/**/*.html', 'public/views/dialogs/')
.livereload([
'public/js/vendor.js',
'public/js/app.js',
'public/css/vendor.css',
'public/css/app.css',
'public/views/**/*.html'
], {liveCSS: true});
});
Any ideas?
Thanks all.
Dave
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community