From b20b5fed405f0ab24d24709d7db65625a79f3b37 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Jun 2016 22:47:55 +0200 Subject: Add production webpack, big thanks to @AngularClass --- client/src/polyfills.ts | 9 +-------- client/src/vendor.ts | 9 --------- 2 files changed, 1 insertion(+), 17 deletions(-) (limited to 'client/src') diff --git a/client/src/polyfills.ts b/client/src/polyfills.ts index 3395eed76..cf7270ac3 100644 --- a/client/src/polyfills.ts +++ b/client/src/polyfills.ts @@ -14,15 +14,8 @@ require('zone.js/dist/zone'); // Typescript emit helpers polyfill import 'ts-helpers'; -if ('production' === ENV) { - // Production - - -} else { - // Development - +if ('production' !== ENV) { Error.stackTraceLimit = Infinity; require('zone.js/dist/long-stack-trace-zone'); - } diff --git a/client/src/vendor.ts b/client/src/vendor.ts index 0f82c59a4..7a8c8423e 100644 --- a/client/src/vendor.ts +++ b/client/src/vendor.ts @@ -17,12 +17,3 @@ import 'rxjs/add/operator/mergeMap'; import 'jquery'; import 'bootstrap-loader'; - -if ('production' === ENV) { - // Production - - -} else { - // Development - -} -- cgit v1.2.3