{"action":"created","issue":{"url":"https://api.github.com/repos/Justin-Credible/Ionic-TypeScript-Starter/issues/37","labels_url":"https://api.github.com/repos/Justin-Credible/Ionic-TypeScript-Starter/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/Justin-Credible/Ionic-TypeScript-Starter/issues/37/comments","events_url":"https://api.github.com/repos/Justin-Credible/Ionic-TypeScript-Starter/issues/37/events","html_url":"https://github.com/Justin-Credible/Ionic-TypeScript-Starter/issues/37","id":112039605,"number":37,"title":"Enhancement: Obfuscate JavaScript and HTML for production","user":{"login":"askrht","id":3771917,"avatar_url":"https://avatars.githubusercontent.com/u/3771917?v=3","gravatar_id":"","url":"https://api.github.com/users/askrht","html_url":"https://github.com/askrht","followers_url":"https://api.github.com/users/askrht/followers","following_url":"https://api.github.com/users/askrht/following{/other_user}","gists_url":"https://api.github.com/users/askrht/gists{/gist_id}","starred_url":"https://api.github.com/users/askrht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/askrht/subscriptions","organizations_url":"https://api.github.com/users/askrht/orgs","repos_url":"https://api.github.com/users/askrht/repos","events_url":"https://api.github.com/users/askrht/events{/privacy}","received_events_url":"https://api.github.com/users/askrht/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Justin-Credible/Ionic-TypeScript-Starter/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-18T20:35:38Z","updated_at":"2015-10-28T00:57:29Z","closed_at":null,"body":"I am doubtful about obfuscating HTML, but JavaScript can be obfuscated for production. Something like this:\r\n\r\n```\r\n    uglify = require('gulp-uglify'),\r\n    minifyHTML = require('gulp-minify-html')\r\n\r\ngulp.task('js', [\"ts\"], function() {\r\n  var config = JSON.parse(fs.readFileSync(\"src/tsconfig.json\", \"utf8\"));\r\n  var out = config.compilerOptions.out;\r\n  var jsBundle = out.substring(0, out.length - 3); //remove .js extension\r\n  gulp.src(out)\r\n    .pipe(gulpif(isReleaseScheme(), uglify()))\r\n    .pipe(gulp.dest(jsBundle + '.min.js'));\r\n  del([out]); // delete js/bundle.js\r\n});\r\n\r\n// change the index.html to use js/bundle.min.js\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Justin-Credible/Ionic-TypeScript-Starter/issues/comments/151687343","html_url":"https://github.com/Justin-Credible/Ionic-TypeScript-Starter/issues/37#issuecomment-151687343","issue_url":"https://api.github.com/repos/Justin-Credible/Ionic-TypeScript-Starter/issues/37","id":151687343,"user":{"login":"askrht","id":3771917,"avatar_url":"https://avatars.githubusercontent.com/u/3771917?v=3","gravatar_id":"","url":"https://api.github.com/users/askrht","html_url":"https://github.com/askrht","followers_url":"https://api.github.com/users/askrht/followers","following_url":"https://api.github.com/users/askrht/following{/other_user}","gists_url":"https://api.github.com/users/askrht/gists{/gist_id}","starred_url":"https://api.github.com/users/askrht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/askrht/subscriptions","organizations_url":"https://api.github.com/users/askrht/orgs","repos_url":"https://api.github.com/users/askrht/repos","events_url":"https://api.github.com/users/askrht/events{/privacy}","received_events_url":"https://api.github.com/users/askrht/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T00:57:29Z","updated_at":"2015-10-28T00:57:29Z","body":"Please assign this issue to me."}}