{"action":"created","issue":{"url":"https://api.github.com/repos/rotundasoftware/parcelify/issues/39","repository_url":"https://api.github.com/repos/rotundasoftware/parcelify","labels_url":"https://api.github.com/repos/rotundasoftware/parcelify/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/rotundasoftware/parcelify/issues/39/comments","events_url":"https://api.github.com/repos/rotundasoftware/parcelify/issues/39/events","html_url":"https://github.com/rotundasoftware/parcelify/issues/39","id":107390391,"number":39,"title":"Using parcelify with Grunt ","user":{"login":"pra85","id":829526,"avatar_url":"https://avatars.githubusercontent.com/u/829526?v=3","gravatar_id":"","url":"https://api.github.com/users/pra85","html_url":"https://github.com/pra85","followers_url":"https://api.github.com/users/pra85/followers","following_url":"https://api.github.com/users/pra85/following{/other_user}","gists_url":"https://api.github.com/users/pra85/gists{/gist_id}","starred_url":"https://api.github.com/users/pra85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pra85/subscriptions","organizations_url":"https://api.github.com/users/pra85/orgs","repos_url":"https://api.github.com/users/pra85/repos","events_url":"https://api.github.com/users/pra85/events{/privacy}","received_events_url":"https://api.github.com/users/pra85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-20T12:20:42Z","updated_at":"2016-04-11T14:36:45Z","closed_at":null,"body":"I am using [grunt-browserify](https://github.com/jmreidy/grunt-browserify) and trying integrate parcelify with it. \r\n\r\nI used the the [preBundleCB](https://github.com/jmreidy/grunt-browserify#prebundlecb) task option provided by grunt-browserify and created a grunt configuration like \r\n\r\n    var browserify = require('browserify');\r\n    var parcelify = require('parcelify');\r\n    module.exports = function(grunt) {\r\n    grunt.loadNpmTasks('grunt-browserify');\r\n    var taskConfig = {\r\n        pkg: grunt.file.readJSON('package.json'),\r\n        browserify: {\r\n            main: {\r\n                src: 'entry.js',\r\n                dest: 'bundle.js'\r\n            },\r\n            options: {\r\n            \tbrowserifyOptions: {debug:true},\r\n            \tpreBundleCB: function(b){\r\n            \t\treturn parcelify(b,{});\r\n            \t}\r\n        \t}\r\n        }\r\n    };\r\n    grunt.initConfig(grunt.util._.extend(taskConfig));\r\n    };\r\n\r\nThis task doesn't fail but the parcelify plugin doesn't generate the CSS file. \r\n\r\nBut when running it from command line , it works without issue , I used the following command\r\n\r\n    browserify entry.js -o bundle.js -p [ parcelify -o bundle.css ]\r\n\r\n\r\nAfter investigating , I found that the callback passed as parameter to ``_this.instantiateParcelAndPackagesFromMap`` ( https://github.com/rotundasoftware/parcelify/blob/v2.1.0/index.js#L122 ) function never gets executed. \r\n\r\nI have working version of my code at https://github.com/pra85/grunt-browserify-example\r\n\r\nAny help or advice for this issue would be really appreciated , Thanks "},"comment":{"url":"https://api.github.com/repos/rotundasoftware/parcelify/issues/comments/208377896","html_url":"https://github.com/rotundasoftware/parcelify/issues/39#issuecomment-208377896","issue_url":"https://api.github.com/repos/rotundasoftware/parcelify/issues/39","id":208377896,"user":{"login":"mediafreakch","id":777093,"avatar_url":"https://avatars.githubusercontent.com/u/777093?v=3","gravatar_id":"","url":"https://api.github.com/users/mediafreakch","html_url":"https://github.com/mediafreakch","followers_url":"https://api.github.com/users/mediafreakch/followers","following_url":"https://api.github.com/users/mediafreakch/following{/other_user}","gists_url":"https://api.github.com/users/mediafreakch/gists{/gist_id}","starred_url":"https://api.github.com/users/mediafreakch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediafreakch/subscriptions","organizations_url":"https://api.github.com/users/mediafreakch/orgs","repos_url":"https://api.github.com/users/mediafreakch/repos","events_url":"https://api.github.com/users/mediafreakch/events{/privacy}","received_events_url":"https://api.github.com/users/mediafreakch/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T14:36:45Z","updated_at":"2016-04-11T14:36:45Z","body":"@dgbeck I have been trying to understand the parcelify process, without much luck. I'm stuck at what the role of an entry file is in parcelify... Can you help? Why is `{ entry: true }` mandatory? Can't parcelify just resolve the dependency tree regardless?"}}