hey, i have an issue with elixir, here is my gulp.js file: i defind 2 mix taks, but only the second one is being executed. any idea why this happens?
elixir.extend('reactifyBrowserifyElixir', function(inputFile, inputFileName, outputDirectory) {
gulp.task('browserify_and_reactify', function() {
var b = browserify();
b.transform(reactify);
b.add(inputFile);
return b.bundle()
.pipe(source(inputFileName))
.pipe(streamify(uglify()))
.pipe(gulp.dest(outputDirectory));
});
return this.queueTask('browserify_and_reactify');
});
elixir(function(mix) {
mix.reactifyBrowserifyElixir('./resources/js/gallery.js', 'gallery.js', 'public/js/')
.reactifyBrowserifyElixir('./resources/js/safe.js', 'safe.js', 'public/js/')
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community