Support the ongoing development of Laravel.io →
posted 10 years ago
Packages

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/')

       });
Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

avieln avieln Joined 29 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.