aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-03 22:47:55 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-03 22:47:55 +0200
commitb20b5fed405f0ab24d24709d7db65625a79f3b37 (patch)
tree70d4b81dc0865ea2b56e278fed77146e5a89934b /client/src
parentfc76359be11956f8514fc0dda1f66bb1c3397d26 (diff)
downloadPeerTube-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.ts9
-rw-r--r--client/src/vendor.ts9
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
15import 'ts-helpers'; 15import 'ts-helpers';
16 16
17if ('production' === ENV) { 17if ('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
18import 'jquery'; 18import 'jquery';
19import 'bootstrap-loader'; 19import 'bootstrap-loader';
20
21if ('production' === ENV) {
22 // Production
23
24
25} else {
26 // Development
27
28}