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 | |
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')
-rw-r--r-- | client/src/polyfills.ts | 9 | ||||
-rw-r--r-- | client/src/vendor.ts | 9 |
2 files changed, 1 insertions, 17 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 | } |
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'; | |||
17 | 17 | ||
18 | import 'jquery'; | 18 | import 'jquery'; |
19 | import 'bootstrap-loader'; | 19 | import 'bootstrap-loader'; |
20 | |||
21 | if ('production' === ENV) { | ||
22 | // Production | ||
23 | |||
24 | |||
25 | } else { | ||
26 | // Development | ||
27 | |||
28 | } | ||