{"id":7876,"date":"2015-11-04T02:30:50","date_gmt":"2015-11-04T02:30:50","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/04\/gulp-task-to-bundle-bower_components-open-source-projects-gulpjs-gulp\/"},"modified":"2015-11-04T02:30:50","modified_gmt":"2015-11-04T02:30:50","slug":"gulp-task-to-bundle-bower_components-open-source-projects-gulpjs-gulp","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/04\/gulp-task-to-bundle-bower_components-open-source-projects-gulpjs-gulp\/","title":{"rendered":"Gulp task to bundle bower_components?-open source projects gulpjs\/gulp"},"content":{"rendered":"<p>I&#8217;d appreciate it so much if someone could please tell me a good way to handle bundling bower components. I feel like I&#8217;ve tried everything&#8230; Although, I can&#8217;t seem to find any gulp tasks that handle this already. Could it really not exist?<\/p>\n<p>Let&#8217;s say it doesn&#8217;t exist. Worst case scenario is I have to specify the paths of each &#8220;dist&#8221; file from bower_components folder. (It is annoying that each component seems to have its own &#8220;dist&#8221; folder&#8230; nothing is standardized.)<\/p>\n<p>So even if I do that, I&#8217;ve noticed some components like &#8216;active-support&#8217; seem to have <code>require('lodash')<\/code> and such in them. I think that if I just simply copy that file, it will break because the requires won&#8217;t resolve.<\/p>\n<p>What am I missing? How do I simply take all bower_components and bundle into a &#8220;common.js&#8221;&#8230; is there a way or is it a clusterfluck?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d appreciate it so much if someone could please tell me a good way to handle bundling bower components. I feel like I&#8217;ve tried everything&#8230; Although, I can&#8217;t seem to find any gulp tasks that handle this already. Could it really not exist? Let&#8217;s say it doesn&#8217;t exist. Worst case scenario is I have to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7876","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7876"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7876\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}