{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/elixir/issues/103","labels_url":"https://api.github.com/repos/laravel/elixir/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/laravel/elixir/issues/103/comments","events_url":"https://api.github.com/repos/laravel/elixir/issues/103/events","html_url":"https://github.com/laravel/elixir/issues/103","id":66838980,"number":103,"title":"Multiple calls to browserify task run only the last call","user":{"login":"mabasic","id":1839930,"avatar_url":"https://avatars.githubusercontent.com/u/1839930?v=3","gravatar_id":"","url":"https://api.github.com/users/mabasic","html_url":"https://github.com/mabasic","followers_url":"https://api.github.com/users/mabasic/followers","following_url":"https://api.github.com/users/mabasic/following{/other_user}","gists_url":"https://api.github.com/users/mabasic/gists{/gist_id}","starred_url":"https://api.github.com/users/mabasic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabasic/subscriptions","organizations_url":"https://api.github.com/users/mabasic/orgs","repos_url":"https://api.github.com/users/mabasic/repos","events_url":"https://api.github.com/users/mabasic/events{/privacy}","received_events_url":"https://api.github.com/users/mabasic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-07T09:39:43Z","updated_at":"2015-04-07T09:39:43Z","closed_at":null,"body":"Hello,\r\n\r\nI have two `mix.browserify` tasks and only the last one gets executed if I run `gulp`:\r\n\r\n```\r\nmix.browserify('app.js', null, 'assets/js');\r\nmix.browserify('events.js', 'public/js/eventPage.js', 'assets/js');\r\n```\r\n\r\nI have tried chaining them like so:\r\n\r\n```\r\nmix.browserify('app.js', null, 'assets/js').browserify('events.js', 'public/js/eventPage.js', 'assets/js');\r\n```\r\n\r\nBut still only the last call to browserify runs.\r\n\r\nI have even tried to to do: \r\n\r\n```\r\nmix.browserify([\r\n        'events.js', 'public/js/eventPage.js', 'assets/js',\r\n        'app.js', null, 'assets/js'\r\n    ]);\r\n```\r\n\r\nBut I get this error:\r\n\r\n```\r\nF:\\Repositories\\Laranotti\\node_modules\\laravel-elixir\\ingredients\\commands\\Utilities.js:30\r\n        file = file.replace(dir, '');\r\n                   ^\r\nTypeError: Cannot read property 'replace' of null\r\n    at F:\\Repositories\\Laranotti\\node_modules\\laravel-elixir\\ingredients\\commands\\Utilities.js:30:20\r\n    at Array.map (native)\r\n    at prefixDirToFiles (F:\\Repositories\\Laranotti\\node_modules\\laravel-elixir\\ingredients\\commands\\Utilities.js:29:18)\r\n    at Object.buildGulpSrc (F:\\Repositories\\Laranotti\\node_modules\\laravel-elixir\\ingredients\\commands\\Utilities.js:13:16)\r\n    at Object.browserify (F:\\Repositories\\Laranotti\\node_modules\\laravel-elixir\\ingredients\\browserify.js:65:21)\r\n    at F:\\Repositories\\Laranotti\\gulpfile.js:22:9\r\n    at Elixir (F:\\Repositories\\Laranotti\\node_modules\\laravel-elixir\\index.js:3:5)\r\n    at Object.<anonymous> (F:\\Repositories\\Laranotti\\gulpfile.js:16:1)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n```\r\n\r\nI am running Elixir version `0.18.5`.\r\n\r\nThe thing that I am trying to do is create two files:\r\n\r\n- bundle.js - which I load in html\r\n- eventPage.js - which is loaded by the extension in background page\r\n\r\n"}}