javascript - How to pass arguments to mix browserify compiled file -


i'm using laravel elixir compile js files

this in gulpfile.js

elixir(function(mix) {     mix.browserify([         './compile.js'         ],         '../public/build.js'     ); }); 

question: in compile.js possible have like:

var = require('./views/a/component.vue'); if(custom_variable_passed_from_gulpfile_task){      var b = require('./views/b/component.vue'); } 

the simple solution make compile.js file second situation.. don't want modify both files everytime have something. can't find mix.browserify in pass arguments file..


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -