Skip to content

Commit 99b5019

Browse files
committed
Import hammerjs in main.ts instead of .angular-cli.json.
1 parent baf290c commit 99b5019

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

.angular-cli.json

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515
"tsconfig": "tsconfig.app.json",
1616
"testTsconfig": "tsconfig.spec.json",
1717
"prefix": "",
18-
"styles": [
19-
"styles.scss"
20-
],
21-
"scripts": [
22-
"../../node_modules/hammerjs/hammer.min.js"
23-
],
18+
"styles": [ "styles.scss" ],
19+
"scripts": [ ],
2420
"environmentSource": "environments/environment.ts",
2521
"environments": {
2622
"dev": "environments/environment.ts",
@@ -29,19 +25,13 @@
2925
}
3026
],
3127
"e2e": {
32-
"protractor": {
33-
"config": "./protractor.conf.js"
34-
}
28+
"protractor": { "config": "./protractor.conf.js" }
3529
},
3630
"test": {
37-
"karma": {
38-
"config": "./karma.conf.js"
39-
}
31+
"karma": { "config": "./karma.conf.js" }
4032
},
4133
"defaults": {
4234
"styleExt": "scss",
43-
"component": {
44-
"flat": true
45-
}
35+
"component": { "flat": true }
4636
}
4737
}

src/demo/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
44
import { DemoModule } from './app/demo.module';
55
import { environment } from './environments/environment';
66

7+
import 'hammerjs';
8+
79
if (environment.production) { enableProdMode(); }
810

911
platformBrowserDynamic().bootstrapModule(DemoModule);

0 commit comments

Comments
 (0)