diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-03 22:08:03 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-03 22:08:03 +0200 |
commit | 4a6995be18b15de1834a39c8921a0e4109671bb6 (patch) | |
tree | b659661cea33687fcc6bd8fc2251cb7a15ab9f9d /client/src/vendor.ts | |
parent | 468892541175f9662f8b1b977e819dc1a496f282 (diff) | |
download | PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.tar.gz PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.tar.zst PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.zip |
First draft to use webpack instead of systemjs
Diffstat (limited to 'client/src/vendor.ts')
-rw-r--r-- | client/src/vendor.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/client/src/vendor.ts b/client/src/vendor.ts new file mode 100644 index 000000000..0f82c59a4 --- /dev/null +++ b/client/src/vendor.ts | |||
@@ -0,0 +1,28 @@ | |||
1 | // For vendors for example jQuery, Lodash, angular2-jwt just import them here unless you plan on | ||
2 | // chunking vendors files for async loading. You would need to import the async loaded vendors | ||
3 | // at the entry point of the async loaded file. Also see custom-typings.d.ts as you also need to | ||
4 | // run `typings install x` where `x` is your module | ||
5 | |||
6 | // Angular 2 | ||
7 | import '@angular/platform-browser'; | ||
8 | import '@angular/platform-browser-dynamic'; | ||
9 | import '@angular/core'; | ||
10 | import '@angular/common'; | ||
11 | import '@angular/http'; | ||
12 | import '@angular/router-deprecated'; | ||
13 | |||
14 | // RxJS | ||
15 | import 'rxjs/add/operator/map'; | ||
16 | import 'rxjs/add/operator/mergeMap'; | ||
17 | |||
18 | import 'jquery'; | ||
19 | import 'bootstrap-loader'; | ||
20 | |||
21 | if ('production' === ENV) { | ||
22 | // Production | ||
23 | |||
24 | |||
25 | } else { | ||
26 | // Development | ||
27 | |||
28 | } | ||