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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -