{"action":"closed","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3627","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3627/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3627/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3627/events","html_url":"https://github.com/ember-cli/ember-cli/issues/3627","id":64022407,"number":3627,"title":"Asset fingerprinting causes Uncaught SyntaxError: Unexpected token ILLEGAL","user":{"login":"craigteegarden","id":1930208,"avatar_url":"https://avatars.githubusercontent.com/u/1930208?v=3","gravatar_id":"","url":"https://api.github.com/users/craigteegarden","html_url":"https://github.com/craigteegarden","followers_url":"https://api.github.com/users/craigteegarden/followers","following_url":"https://api.github.com/users/craigteegarden/following{/other_user}","gists_url":"https://api.github.com/users/craigteegarden/gists{/gist_id}","starred_url":"https://api.github.com/users/craigteegarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigteegarden/subscriptions","organizations_url":"https://api.github.com/users/craigteegarden/orgs","repos_url":"https://api.github.com/users/craigteegarden/repos","events_url":"https://api.github.com/users/craigteegarden/events{/privacy}","received_events_url":"https://api.github.com/users/craigteegarden/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/needs-investigation","name":"needs-investigation","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ember-cli/ember-cli/milestones/12","html_url":"https://github.com/ember-cli/ember-cli/milestones/v0.2.2","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/milestones/12/labels","id":1034902,"number":12,"title":"v0.2.2","description":"","creator":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2015-03-23T18:35:34Z","updated_at":"2015-03-24T15:42:16Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-03-24T15:19:57Z","updated_at":"2015-03-24T15:42:17Z","closed_at":"2015-03-24T15:42:16Z","body":"One of the css files in our project is named `ie.css`, and when it is fingerprinted and the filename is replaced in the various source files, it seems to be incorrectly replaced in some parts of the `vendor.js` file.\r\n\r\nWhen running the minified, production build in Chrome I get the error:\r\n\r\n```\r\nUncaught SyntaxError: Unexpected token ILLEGAL\r\n```\r\n\r\nFirefox gives a slightly more helpful message:\r\n\r\n```\r\nSyntaxError: identifier starts immediately after numeric literal  vendor-e8428f169f3b87e0d29fb6a730f7778a.js:1:10382\r\n```\r\n\r\nwhich shows code that looks like this:\r\n\r\n```\r\nr!==n&&(e[n]=o,delete e[r]),a=ie-694e56ccaf670ce486403b878409183c.cssHooks[n],a&&\"expand\"in a)\r\n```\r\n\r\nYou can obviously see the fingerprinted filename in the js source. This file shouldn't be referenced in `vendor.js`, so it appears that the asset fingerprinting step is matching js source and replacing it with the fingerprinted filename and causing the syntax error.\r\n\r\nI made a sample repository based on ember-cli 0.2.1 where the only addition is the single css file. Building it with `environment=production` will show the error.\r\n\r\nhttps://github.com/craigteegarden/ember-cli-fingerprint-breaks-js-files\r\n\r\nRenaming the file to something less-likely to be found in the js source works (like `awesome-fixes-ie.css`), but this situation is very frustrating to figure out and seems like it should be fixed if possible."}}