diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-03 22:47:55 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-03 22:47:55 +0200 |
commit | b20b5fed405f0ab24d24709d7db65625a79f3b37 (patch) | |
tree | 70d4b81dc0865ea2b56e278fed77146e5a89934b /client/src/polyfills.ts | |
parent | fc76359be11956f8514fc0dda1f66bb1c3397d26 (diff) | |
download | PeerTube-b20b5fed405f0ab24d24709d7db65625a79f3b37.tar.gz PeerTube-b20b5fed405f0ab24d24709d7db65625a79f3b37.tar.zst PeerTube-b20b5fed405f0ab24d24709d7db65625a79f3b37.zip |
Add production webpack, big thanks to @AngularClass
Diffstat (limited to 'client/src/polyfills.ts')
-rw-r--r-- | client/src/polyfills.ts | 9 |
1 files changed, 1 insertions, 8 deletions
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'); | |||
14 | // Typescript emit helpers polyfill | 14 | // Typescript emit helpers polyfill |
15 | import 'ts-helpers'; | 15 | import 'ts-helpers'; |
16 | 16 | ||
17 | if ('production' === ENV) { | 17 | if ('production' !== ENV) { |
18 | // Production | ||
19 | |||
20 | |||
21 | } else { | ||
22 | // Development | ||
23 | |||
24 | Error.stackTraceLimit = Infinity; | 18 | Error.stackTraceLimit = Infinity; |
25 | 19 | ||
26 | require('zone.js/dist/long-stack-trace-zone'); | 20 | require('zone.js/dist/long-stack-trace-zone'); |
27 | |||
28 | } | 21 | } |