{"action":"created","issue":{"url":"https://api.github.com/repos/mcfly-io/generator-mcfly/issues/302","labels_url":"https://api.github.com/repos/mcfly-io/generator-mcfly/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/mcfly-io/generator-mcfly/issues/302/comments","events_url":"https://api.github.com/repos/mcfly-io/generator-mcfly/issues/302/events","html_url":"https://github.com/mcfly-io/generator-mcfly/issues/302","id":121462760,"number":302,"title":"Generated index-{{targetSuffix}}.html file not bundled","user":{"login":"jagged3dge","id":3892333,"avatar_url":"https://avatars.githubusercontent.com/u/3892333?v=3","gravatar_id":"","url":"https://api.github.com/users/jagged3dge","html_url":"https://github.com/jagged3dge","followers_url":"https://api.github.com/users/jagged3dge/followers","following_url":"https://api.github.com/users/jagged3dge/following{/other_user}","gists_url":"https://api.github.com/users/jagged3dge/gists{/gist_id}","starred_url":"https://api.github.com/users/jagged3dge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagged3dge/subscriptions","organizations_url":"https://api.github.com/users/jagged3dge/orgs","repos_url":"https://api.github.com/users/jagged3dge/repos","events_url":"https://api.github.com/users/jagged3dge/events{/privacy}","received_events_url":"https://api.github.com/users/jagged3dge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-10T11:25:14Z","updated_at":"2015-12-10T12:01:29Z","closed_at":null,"body":"Thanks for making this lovely generator :+1: \r\n\r\nI am trying to use the same service base with my web and an ionic/cordova mobile app. To that end, I generated a new `target` using `yo mcfly:target mobile --mobile` which created a new `index-mobile.html` file in the `client` folder.\r\n\r\nNow when I'm building the `mobile` target, I find that it's using the other `index.html` file instead of starting off of `index-mobile.html`. Is this by design? If so, what do I need to change to make it automatically use the `index-{{targetSuffix}}.html` file instead of the original `index.html`."},"comment":{"url":"https://api.github.com/repos/mcfly-io/generator-mcfly/issues/comments/163591102","html_url":"https://github.com/mcfly-io/generator-mcfly/issues/302#issuecomment-163591102","issue_url":"https://api.github.com/repos/mcfly-io/generator-mcfly/issues/302","id":163591102,"user":{"login":"jskrzypek","id":1513265,"avatar_url":"https://avatars.githubusercontent.com/u/1513265?v=3","gravatar_id":"","url":"https://api.github.com/users/jskrzypek","html_url":"https://github.com/jskrzypek","followers_url":"https://api.github.com/users/jskrzypek/followers","following_url":"https://api.github.com/users/jskrzypek/following{/other_user}","gists_url":"https://api.github.com/users/jskrzypek/gists{/gist_id}","starred_url":"https://api.github.com/users/jskrzypek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jskrzypek/subscriptions","organizations_url":"https://api.github.com/users/jskrzypek/orgs","repos_url":"https://api.github.com/users/jskrzypek/repos","events_url":"https://api.github.com/users/jskrzypek/events{/privacy}","received_events_url":"https://api.github.com/users/jskrzypek/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T12:01:29Z","updated_at":"2015-12-10T12:01:29Z","body":"Ok I took a look & tested it and everything looks just fine, but I think I figured out your issue... are you specifying your mobile target when you run `gulp browsersync`? For the main target you can leave the `-t` flag blank, but for others you'll need to add the targetname. In your case run `gulp browsersync -t mobile`.\r\n\r\nThe reason for this is that the gulp tasks are either able to run for multiple targets (all at once or a selected subset) or only for one at a time. `dist` can run for all targets at once, but `browsersync` will only run for one. All of the tasks that are depended upon by the one you call end up deferring to the specific target list chosen by the task named on the command line."}}