{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5795","repository_url":"https://api.github.com/repos/ember-cli/ember-cli","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5795/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5795/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5795/events","html_url":"https://github.com/ember-cli/ember-cli/issues/5795","id":148290997,"number":5795,"title":"Customising outputPaths skips minification","user":{"login":"kevinansfield","id":415,"avatar_url":"https://avatars.githubusercontent.com/u/415?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinansfield","html_url":"https://github.com/kevinansfield","followers_url":"https://api.github.com/users/kevinansfield/followers","following_url":"https://api.github.com/users/kevinansfield/following{/other_user}","gists_url":"https://api.github.com/users/kevinansfield/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinansfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinansfield/subscriptions","organizations_url":"https://api.github.com/users/kevinansfield/orgs","repos_url":"https://api.github.com/users/kevinansfield/repos","events_url":"https://api.github.com/users/kevinansfield/events{/privacy}","received_events_url":"https://api.github.com/users/kevinansfield/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/Needs%20Bug%20Verification","name":"Needs Bug Verification","color":"9319E0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-14T08:36:32Z","updated_at":"2016-04-14T14:06:31Z","closed_at":null,"body":"We've just prepped a release and found that our built file sizes are huge because they aren't being minified. On a hunch I disabled our `outputPaths` customisation and found that it was causing the minification step to be skipped.\r\n\r\nI've worked backwards through the ember-cli versions and I'm seeing the same behaviour in all `2.x` releases. Our last release was using `1.13.15` which was minifying the JS files correctly.\r\n\r\nOur full `ember-cli-build.js` config is available at https://github.com/TryGhost/Ghost/blob/master/core/client/ember-cli-build.js\r\n\r\nWith custom `outputPaths` specified:\r\n```\r\n> ember build --environment=production\r\nBuilt project successfully. Stored in \"dist/\".\r\nFile sizes:\r\n - ghost.min.css: 86.46 KB (16.49 KB gzipped)\r\n - ghost.min.js: 1.22 MB (148.29 KB gzipped)\r\n - vendor.min.css: 6.92 KB (1.9 KB gzipped)\r\n - vendor.min.js: 4.54 MB (1.05 MB gzipped)\r\n```\r\n\r\nWith the `outputPaths` config commented out:\r\n```\r\n> ember build --environment=production\r\nBuilt project successfully. Stored in \"dist/\".\r\nFile sizes:\r\n - ghost.js: 659.21 KB (93.3 KB gzipped)\r\n - ghost.min.css: 86.46 KB (16.49 KB gzipped)\r\n - vendor.css: 6.92 KB (1.9 KB gzipped)\r\n - vendor.js: 1.51 MB (436.35 KB gzipped)\r\n```\r\n\r\n```\r\n> ember --version\r\nember-cli: 2.4.3\r\nnode: 0.12.9\r\nos: darwin x64\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/209960018","html_url":"https://github.com/ember-cli/ember-cli/issues/5795#issuecomment-209960018","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5795","id":209960018,"user":{"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},"created_at":"2016-04-14T14:06:31Z","updated_at":"2016-04-14T14:06:31Z","body":"thanks."}}