{"action":"created","issue":{"url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/76","repository_url":"https://api.github.com/repos/dowjones/gulp-bundle-assets","labels_url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/76/comments","events_url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/76/events","html_url":"https://github.com/dowjones/gulp-bundle-assets/issues/76","id":141481925,"number":76,"title":"Custom targets for bundled scripts and styles?","user":{"login":"alexweissman","id":5004534,"avatar_url":"https://avatars.githubusercontent.com/u/5004534?v=3","gravatar_id":"","url":"https://api.github.com/users/alexweissman","html_url":"https://github.com/alexweissman","followers_url":"https://api.github.com/users/alexweissman/followers","following_url":"https://api.github.com/users/alexweissman/following{/other_user}","gists_url":"https://api.github.com/users/alexweissman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexweissman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexweissman/subscriptions","organizations_url":"https://api.github.com/users/alexweissman/orgs","repos_url":"https://api.github.com/users/alexweissman/repos","events_url":"https://api.github.com/users/alexweissman/events{/privacy}","received_events_url":"https://api.github.com/users/alexweissman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-17T05:03:27Z","updated_at":"2016-03-17T20:11:29Z","closed_at":null,"body":"Thanks for the great plugin!  This seems like the exact solution I need for a full-fledged asset manager.\r\n\r\nThis issue relates to #22 and #60.  In addition to specifying custom bundle directories in the `bundle.result.json`, it would also be useful if I could specify custom target directories for different types of assets.  For example, multiple bundles' Javascript assets could be written to `public/js/`, while CSS assets could all be written to `public/css/`.\r\n\r\nIs this currently possible?"},"comment":{"url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/comments/198063379","html_url":"https://github.com/dowjones/gulp-bundle-assets/issues/76#issuecomment-198063379","issue_url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/76","id":198063379,"user":{"login":"chmontgomery","id":232356,"avatar_url":"https://avatars.githubusercontent.com/u/232356?v=3","gravatar_id":"","url":"https://api.github.com/users/chmontgomery","html_url":"https://github.com/chmontgomery","followers_url":"https://api.github.com/users/chmontgomery/followers","following_url":"https://api.github.com/users/chmontgomery/following{/other_user}","gists_url":"https://api.github.com/users/chmontgomery/gists{/gist_id}","starred_url":"https://api.github.com/users/chmontgomery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chmontgomery/subscriptions","organizations_url":"https://api.github.com/users/chmontgomery/orgs","repos_url":"https://api.github.com/users/chmontgomery/repos","events_url":"https://api.github.com/users/chmontgomery/events{/privacy}","received_events_url":"https://api.github.com/users/chmontgomery/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T20:11:29Z","updated_at":"2016-03-17T20:11:29Z","body":"actually this is possible, however poorly documented. You can accomplish this by adding the paths as part of the bundle name in `bundle.config.js` as seen here: https://github.com/dowjones/gulp-bundle-assets/blob/master/examples/custom-url-paths/bundle.config.js\r\n\r\nFor your use case, it would basically look like this:\r\n\r\n```\r\n// bundle.config.js\r\nmodule.exports = {\r\n  bundle: {\r\n    'js/main': {\r\n      scripts: './content/*.js'\r\n    },\r\n    'css/main': {\r\n      styles: './content/*.css'\r\n    }\r\n  }\r\n};\r\n```\r\n\r\n```\r\n// gulpfile.js\r\ngulp.task('bundle', function () {\r\n  return gulp.src('./bundle.config.js')\r\n    .pipe(bundle())\r\n    .pipe(gulp.dest('./public'));\r\n});\r\n```\r\n\r\nSo the resulting files would be `public/js/main.js` and `public/css/main.css`\r\n\r\nPlease let me know if that answers your question"}}