{"action":"opened","issue":{"url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/922","labels_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/922/labels{/name}","comments_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/922/comments","events_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/922/events","html_url":"https://github.com/DaftMonk/generator-angular-fullstack/issues/922","id":66868681,"number":922,"title":"Editing dynamic task flow confusion from \\lib\\config\\*package*(js).js appending unnecessary 'js' to package names","user":{"login":"Jnull","id":3529087,"avatar_url":"https://avatars.githubusercontent.com/u/3529087?v=3","gravatar_id":"","url":"https://api.github.com/users/Jnull","html_url":"https://github.com/Jnull","followers_url":"https://api.github.com/users/Jnull/followers","following_url":"https://api.github.com/users/Jnull/following{/other_user}","gists_url":"https://api.github.com/users/Jnull/gists{/gist_id}","starred_url":"https://api.github.com/users/Jnull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jnull/subscriptions","organizations_url":"https://api.github.com/users/Jnull/orgs","repos_url":"https://api.github.com/users/Jnull/repos","events_url":"https://api.github.com/users/Jnull/events{/privacy}","received_events_url":"https://api.github.com/users/Jnull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-07T12:12:32Z","updated_at":"2015-04-07T12:12:32Z","closed_at":null,"body":"![bug_uglifyjs](https://cloud.githubusercontent.com/assets/3529087/7022767/1ed746ee-dce4-11e4-8199-217994702d34.png)\r\n\r\npackages (\\node_modules\\grunt-usemin\\lib\\config\\*)  append extra js to files adding confusion \r\n\r\nExample: \r\nHere is an example below.  \r\nI've been troubleshooting the dynamic task generation for uglify after a few hours and found that usemin is referencing/requiring 'uglifyjs' instead of 'uglify' which can be confusing, its referencing from: (..\\webapp_project\\node_modules\\grunt-usemin\\lib\\config\\uflifyjs.js) \r\n\r\nExample: \r\n```javascript\r\n//Inside your Gruntfile.js   inside     ' grunt.initConfig({ '\r\n  useminPrepare: {\r\n            html: 'app/index.html',\r\n            options: {\r\n                dest: 'dist',\r\n                flow: {\r\n                    steps: {\r\n                        js: ['concat', 'uglifyjs']\r\n                    },\r\n                    post: {\r\n                        js: [\r\n                            {\r\n                                name: 'concat',\r\n                                createConfig: function (context, block) {\r\n                                    var generated = context.options.generated;\r\n                                    generated.options = {\r\n                                        foo: 'bar'\r\n                                    };\r\n                                }\r\n                            },\r\n                            {\r\n                                name: 'uglify',\r\n                                createConfig: function (context, block) {\r\n                                    var generated = context.options.generated;\r\n                                    generated.options = {\r\n                                        banner: '//WOOOHOOO!!!'\r\n                                    };\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                }\r\n            }\r\n        }\r\n```"}}