{"action":"opened","issue":{"url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/378","labels_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/378/comments","events_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/378/events","html_url":"https://github.com/PolymerElements/polymer-starter-kit/issues/378","id":107826972,"number":378,"title":"poly-build/uglify breaks firebase.js","user":{"login":"sfeast","id":202769,"avatar_url":"https://avatars.githubusercontent.com/u/202769?v=3","gravatar_id":"","url":"https://api.github.com/users/sfeast","html_url":"https://github.com/sfeast","followers_url":"https://api.github.com/users/sfeast/followers","following_url":"https://api.github.com/users/sfeast/following{/other_user}","gists_url":"https://api.github.com/users/sfeast/gists{/gist_id}","starred_url":"https://api.github.com/users/sfeast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfeast/subscriptions","organizations_url":"https://api.github.com/users/sfeast/orgs","repos_url":"https://api.github.com/users/sfeast/repos","events_url":"https://api.github.com/users/sfeast/events{/privacy}","received_events_url":"https://api.github.com/users/sfeast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-23T00:02:52Z","updated_at":"2015-09-23T00:02:52Z","closed_at":null,"body":"To reproduce:\r\n1) Import one of the polymer firebase elements in a psk app.\r\n2) Build the app.\r\n3) Run the build in any browser.\r\n\r\nResult:\r\nUncaught SyntaxError: Unexpected token ILLEGAL\r\n\r\nReason:\r\npoly-clean's uglifyJS function is run by poly-build & it appears uglify breaks firebase.js which is included by the firebase elements.\r\n\r\nA workaround is to use https://github.com/PolymerElements/polymer-starter-kit#if-you-require-more-granular-configuration-of-vulcanize-than-polybuild-provides-you-an-option-by and use the excludes option in vulcanize, i.e.:\r\n\r\n```\r\n.pipe($.vulcanize({\r\n      stripComments: true,\r\n      inlineCss: true,\r\n      inlineScripts: true,\r\n      excludes: [path.resolve('./dist/bower_components/firebase/firebase.js')]\r\n    }))\r\n```"}}