From b032b7b806e2dffd48ef58c25646e73e6fc22cd5 Mon Sep 17 00:00:00 2001 From: Marco Predari Date: Sat, 5 May 2018 19:16:46 +0200 Subject: [PATCH] Fixed env not defined. Added sourcemaps to .gitignore --- .gitignore | 2 ++ .sourcemaps/main.css.map | 1 - .sourcemaps/main.js.map | 1 - config/webpack.config.js | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 .sourcemaps/main.css.map delete mode 100644 .sourcemaps/main.js.map diff --git a/.gitignore b/.gitignore index ece789b..3630ef4 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,5 @@ UserInterfaceState.xcuserstate # Envrionment Variables **/environment.* !**/environment.model.ts + +.sourcemaps/ diff --git a/.sourcemaps/main.css.map b/.sourcemaps/main.css.map deleted file mode 100644 index ec747fa..0000000 --- a/.sourcemaps/main.css.map +++ /dev/null @@ -1 +0,0 @@ -null \ No newline at end of file diff --git a/.sourcemaps/main.js.map b/.sourcemaps/main.js.map deleted file mode 100644 index 5dc53b5..0000000 --- a/.sourcemaps/main.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../node_modules/@angular/core/@angular lazy","../../src lazy","../../src/environments/environment.prod.ts","../../src/pages/home/home.ts","../../src/app/app.component.ts","../../src/app/app.module.ts","../../src/app/app.module.ngfactory.ts"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","Error","keys","module","exports","id","ENV","_super"],"mappings":"mCAAA,SAAAA,EAAAC,GAGA,OAAAC,QAAAC,UAAAC,KAAA,WACA,MAAA,IAAAC,MAAA,uBAAAJ,EAAA,QAGAD,EAAAM,KAAA,WAA4C,UAC5CN,EAAAG,QAAAH,EACAO,EAAAC,QAAAR,EACAA,EAAAS,GAAA,qBCVA,SAAAT,EAAAC,GAGA,OAAAC,QAAAC,UAAAC,KAAA,WACA,MAAA,IAAAC,MAAA,uBAAAJ,EAAA,QAGAD,EAAAM,KAAA,WAA4C,UAC5CN,EAAAG,QAAAH,EACAO,EAAAC,QAAAR,EACAA,EAAAS,GAAA,w2DCVAC,wBCac,+DAAA,KCCH,yGAAA,6BCCI,+BAAA,gkCCiDQ,SAAAC,wuUAAA","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncatched exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 64;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@angular/core/@angular lazy\n// module id = 64\n// module chunks = 0","function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncatched exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 80;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src lazy\n// module id = 80\n// module chunks = 0","export var ENV = {\n mode: 'Production'\n};\n//# sourceMappingURL=environment.prod.js.map\n\n\n// WEBPACK FOOTER //\n// ./src/environments/environment.prod.ts","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { Component } from '@angular/core';\nimport { NavController } from 'ionic-angular';\n// Import environment variables in any component\nimport { ENV } from '@app/env';\nvar HomePage = (function () {\n function HomePage(navCtrl) {\n this.navCtrl = navCtrl;\n this.mode = ENV.mode;\n }\n return HomePage;\n}());\nHomePage = __decorate([\n Component({\n selector: 'page-home',\n templateUrl: 'home.html'\n }),\n __metadata(\"design:paramtypes\", [typeof (_a = typeof NavController !== \"undefined\" && NavController) === \"function\" && _a || Object])\n], HomePage);\nexport { HomePage };\nvar _a;\n//# sourceMappingURL=home.js.map\n\n\n// WEBPACK FOOTER //\n// ./src/pages/home/home.ts","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { Component } from '@angular/core';\nimport { Platform } from 'ionic-angular';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { SplashScreen } from '@ionic-native/splash-screen';\nimport { HomePage } from '../pages/home/home';\nvar MyApp = (function () {\n function MyApp(platform, statusBar, splashScreen) {\n this.rootPage = HomePage;\n platform.ready().then(function () {\n // Okay, so the platform is ready and our plugins are available.\n // Here you can do any higher level native things you might need.\n statusBar.styleDefault();\n splashScreen.hide();\n });\n }\n return MyApp;\n}());\nMyApp = __decorate([\n Component({\n templateUrl: 'app.html'\n }),\n __metadata(\"design:paramtypes\", [typeof (_a = typeof Platform !== \"undefined\" && Platform) === \"function\" && _a || Object, typeof (_b = typeof StatusBar !== \"undefined\" && StatusBar) === \"function\" && _b || Object, typeof (_c = typeof SplashScreen !== \"undefined\" && SplashScreen) === \"function\" && _c || Object])\n], MyApp);\nexport { MyApp };\nvar _a, _b, _c;\n//# sourceMappingURL=app.component.js.map\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.component.ts","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { BrowserModule } from '@angular/platform-browser';\nimport { ErrorHandler, NgModule } from '@angular/core';\nimport { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';\nimport { SplashScreen } from '@ionic-native/splash-screen';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { MyApp } from './app.component';\nimport { HomePage } from '../pages/home/home';\nimport { ENV } from '@app/env';\nconsole.log(ENV.mode);\nvar AppModule = (function () {\n function AppModule() {\n }\n return AppModule;\n}());\nAppModule = __decorate([\n NgModule({\n declarations: [\n MyApp,\n HomePage\n ],\n imports: [\n BrowserModule,\n IonicModule.forRoot(MyApp)\n ],\n bootstrap: [IonicApp],\n entryComponents: [\n MyApp,\n HomePage\n ],\n providers: [\n StatusBar,\n SplashScreen,\n { provide: ErrorHandler, useClass: IonicErrorHandler }\n ]\n })\n], AppModule);\nexport { AppModule };\n//# sourceMappingURL=app.module.js.map\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.module.ts","/**\n * @fileoverview This file is generated by the Angular template compiler.\n * Do not edit.\n * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride}\n */\n/* tslint:disable */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport * as import0 from '@angular/core';\nimport * as import1 from './app.module';\nimport * as import2 from '@angular/common';\nimport * as import3 from 'ionic-angular/util/ionic-error-handler';\nimport * as import4 from 'ionic-angular/platform/dom-controller';\nimport * as import5 from 'ionic-angular/components/app/menu-controller';\nimport * as import6 from 'ionic-angular/components/app/app';\nimport * as import7 from 'ionic-angular/gestures/gesture-controller';\nimport * as import8 from 'ionic-angular/util/ng-module-loader';\nimport * as import9 from '@angular/platform-browser';\nimport * as import10 from '@angular/forms';\nimport * as import11 from 'ionic-angular/module';\nimport * as import12 from 'ionic-angular/gestures/gesture-config';\nimport * as import13 from 'ionic-angular/components/action-sheet/action-sheet-controller';\nimport * as import14 from 'ionic-angular/components/alert/alert-controller';\nimport * as import15 from 'ionic-angular/util/events';\nimport * as import16 from 'ionic-angular/util/form';\nimport * as import17 from 'ionic-angular/tap-click/haptic';\nimport * as import18 from 'ionic-angular/platform/keyboard';\nimport * as import19 from 'ionic-angular/components/loading/loading-controller';\nimport * as import20 from 'ionic-angular/components/modal/modal-controller';\nimport * as import21 from 'ionic-angular/components/picker/picker-controller';\nimport * as import22 from 'ionic-angular/components/popover/popover-controller';\nimport * as import23 from 'ionic-angular/tap-click/tap-click';\nimport * as import24 from 'ionic-angular/components/toast/toast-controller';\nimport * as import25 from 'ionic-angular/transitions/transition-controller';\nimport * as import26 from '@ionic-native/status-bar/index';\nimport * as import27 from '@ionic-native/splash-screen/index';\nimport * as import28 from '../../node_modules/ionic-angular/components/action-sheet/action-sheet-component.ngfactory';\nimport * as import29 from '../../node_modules/ionic-angular/components/alert/alert-component.ngfactory';\nimport * as import30 from '../../node_modules/ionic-angular/components/app/app-root.ngfactory';\nimport * as import31 from '../../node_modules/ionic-angular/components/loading/loading-component.ngfactory';\nimport * as import32 from '../../node_modules/ionic-angular/components/modal/modal-component.ngfactory';\nimport * as import33 from '../../node_modules/ionic-angular/components/picker/picker-component.ngfactory';\nimport * as import34 from '../../node_modules/ionic-angular/components/popover/popover-component.ngfactory';\nimport * as import35 from '../../node_modules/ionic-angular/components/select/select-popover-component.ngfactory';\nimport * as import36 from '../../node_modules/ionic-angular/components/toast/toast-component.ngfactory';\nimport * as import37 from './app.component.ngfactory';\nimport * as import38 from '../pages/home/home.ngfactory';\nimport * as import39 from 'ionic-angular/navigation/url-serializer';\nimport * as import40 from 'ionic-angular/navigation/deep-linker';\nimport * as import41 from 'ionic-angular/platform/platform-registry';\nimport * as import42 from 'ionic-angular/platform/platform';\nimport * as import43 from 'ionic-angular/config/config';\nimport * as import44 from 'ionic-angular/util/module-loader';\nimport * as import45 from 'ionic-angular/config/mode-registry';\nimport * as import46 from './app.component';\nimport * as import47 from 'ionic-angular/components/app/app-root';\nvar AppModuleInjector = (function (_super) {\n __extends(AppModuleInjector, _super);\n function AppModuleInjector(parent) {\n return _super.call(this, parent, [\n import28.ActionSheetCmpNgFactory,\n import29.AlertCmpNgFactory,\n import30.IonicAppNgFactory,\n import31.LoadingCmpNgFactory,\n import32.ModalCmpNgFactory,\n import33.PickerCmpNgFactory,\n import34.PopoverCmpNgFactory,\n import35.SelectPopoverNgFactory,\n import36.ToastCmpNgFactory,\n import37.MyAppNgFactory,\n import38.HomePageNgFactory\n ], [import30.IonicAppNgFactory]) || this;\n }\n Object.defineProperty(AppModuleInjector.prototype, \"_LOCALE_ID_25\", {\n get: function () {\n if ((this.__LOCALE_ID_25 == null)) {\n (this.__LOCALE_ID_25 = import0.ɵn(this.parent.get(import0.LOCALE_ID, null)));\n }\n return this.__LOCALE_ID_25;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_NgLocalization_26\", {\n get: function () {\n if ((this.__NgLocalization_26 == null)) {\n (this.__NgLocalization_26 = new import2.NgLocaleLocalization(this._LOCALE_ID_25));\n }\n return this.__NgLocalization_26;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_APP_ID_27\", {\n get: function () {\n if ((this.__APP_ID_27 == null)) {\n (this.__APP_ID_27 = import0.ɵg());\n }\n return this.__APP_ID_27;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_IterableDiffers_28\", {\n get: function () {\n if ((this.__IterableDiffers_28 == null)) {\n (this.__IterableDiffers_28 = import0.ɵl());\n }\n return this.__IterableDiffers_28;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_KeyValueDiffers_29\", {\n get: function () {\n if ((this.__KeyValueDiffers_29 == null)) {\n (this.__KeyValueDiffers_29 = import0.ɵm());\n }\n return this.__KeyValueDiffers_29;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_DomSanitizer_30\", {\n get: function () {\n if ((this.__DomSanitizer_30 == null)) {\n (this.__DomSanitizer_30 = new import9.ɵe(this.parent.get(import9.DOCUMENT)));\n }\n return this.__DomSanitizer_30;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_Sanitizer_31\", {\n get: function () {\n if ((this.__Sanitizer_31 == null)) {\n (this.__Sanitizer_31 = this._DomSanitizer_30);\n }\n return this.__Sanitizer_31;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_HAMMER_GESTURE_CONFIG_32\", {\n get: function () {\n if ((this.__HAMMER_GESTURE_CONFIG_32 == null)) {\n (this.__HAMMER_GESTURE_CONFIG_32 = new import12.IonicGestureConfig());\n }\n return this.__HAMMER_GESTURE_CONFIG_32;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_EVENT_MANAGER_PLUGINS_33\", {\n get: function () {\n if ((this.__EVENT_MANAGER_PLUGINS_33 == null)) {\n (this.__EVENT_MANAGER_PLUGINS_33 = [\n new import9.ɵDomEventsPlugin(this.parent.get(import9.DOCUMENT)),\n new import9.ɵKeyEventsPlugin(this.parent.get(import9.DOCUMENT)),\n new import9.ɵHammerGesturesPlugin(this.parent.get(import9.DOCUMENT), this._HAMMER_GESTURE_CONFIG_32)\n ]);\n }\n return this.__EVENT_MANAGER_PLUGINS_33;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_EventManager_34\", {\n get: function () {\n if ((this.__EventManager_34 == null)) {\n (this.__EventManager_34 = new import9.EventManager(this._EVENT_MANAGER_PLUGINS_33, this.parent.get(import0.NgZone)));\n }\n return this.__EventManager_34;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_\\u0275DomSharedStylesHost_35\", {\n get: function () {\n if ((this.__ɵDomSharedStylesHost_35 == null)) {\n (this.__ɵDomSharedStylesHost_35 = new import9.ɵDomSharedStylesHost(this.parent.get(import9.DOCUMENT)));\n }\n return this.__ɵDomSharedStylesHost_35;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_\\u0275DomRendererFactory2_36\", {\n get: function () {\n if ((this.__ɵDomRendererFactory2_36 == null)) {\n (this.__ɵDomRendererFactory2_36 = new import9.ɵDomRendererFactory2(this._EventManager_34, this._ɵDomSharedStylesHost_35));\n }\n return this.__ɵDomRendererFactory2_36;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_RendererFactory2_37\", {\n get: function () {\n if ((this.__RendererFactory2_37 == null)) {\n (this.__RendererFactory2_37 = this._ɵDomRendererFactory2_36);\n }\n return this.__RendererFactory2_37;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_\\u0275SharedStylesHost_38\", {\n get: function () {\n if ((this.__ɵSharedStylesHost_38 == null)) {\n (this.__ɵSharedStylesHost_38 = this._ɵDomSharedStylesHost_35);\n }\n return this.__ɵSharedStylesHost_38;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_Testability_39\", {\n get: function () {\n if ((this.__Testability_39 == null)) {\n (this.__Testability_39 = new import0.Testability(this.parent.get(import0.NgZone)));\n }\n return this.__Testability_39;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_Meta_40\", {\n get: function () {\n if ((this.__Meta_40 == null)) {\n (this.__Meta_40 = new import9.Meta(this.parent.get(import9.DOCUMENT)));\n }\n return this.__Meta_40;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_Title_41\", {\n get: function () {\n if ((this.__Title_41 == null)) {\n (this.__Title_41 = new import9.Title(this.parent.get(import9.DOCUMENT)));\n }\n return this.__Title_41;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_\\u0275i_42\", {\n get: function () {\n if ((this.__ɵi_42 == null)) {\n (this.__ɵi_42 = new import10.ɵi());\n }\n return this.__ɵi_42;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_FormBuilder_43\", {\n get: function () {\n if ((this.__FormBuilder_43 == null)) {\n (this.__FormBuilder_43 = new import10.FormBuilder());\n }\n return this.__FormBuilder_43;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_ActionSheetController_46\", {\n get: function () {\n if ((this.__ActionSheetController_46 == null)) {\n (this.__ActionSheetController_46 = new import13.ActionSheetController(this._App_8, this._Config_5));\n }\n return this.__ActionSheetController_46;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_AlertController_47\", {\n get: function () {\n if ((this.__AlertController_47 == null)) {\n (this.__AlertController_47 = new import14.AlertController(this._App_8, this._Config_5));\n }\n return this.__AlertController_47;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_Events_48\", {\n get: function () {\n if ((this.__Events_48 == null)) {\n (this.__Events_48 = new import15.Events());\n }\n return this.__Events_48;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_Form_49\", {\n get: function () {\n if ((this.__Form_49 == null)) {\n (this.__Form_49 = new import16.Form());\n }\n return this.__Form_49;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_Haptic_50\", {\n get: function () {\n if ((this.__Haptic_50 == null)) {\n (this.__Haptic_50 = new import17.Haptic(this._Platform_4));\n }\n return this.__Haptic_50;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_Keyboard_51\", {\n get: function () {\n if ((this.__Keyboard_51 == null)) {\n (this.__Keyboard_51 = new import18.Keyboard(this._Config_5, this._Platform_4, this.parent.get(import0.NgZone), this._DomController_6));\n }\n return this.__Keyboard_51;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_LoadingController_52\", {\n get: function () {\n if ((this.__LoadingController_52 == null)) {\n (this.__LoadingController_52 = new import19.LoadingController(this._App_8, this._Config_5));\n }\n return this.__LoadingController_52;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_LocationStrategy_53\", {\n get: function () {\n if ((this.__LocationStrategy_53 == null)) {\n (this.__LocationStrategy_53 = import11.provideLocationStrategy(this.parent.get(import2.PlatformLocation), this._APP_BASE_HREF_45, this._Config_5));\n }\n return this.__LocationStrategy_53;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_Location_54\", {\n get: function () {\n if ((this.__Location_54 == null)) {\n (this.__Location_54 = new import2.Location(this._LocationStrategy_53));\n }\n return this.__Location_54;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_UrlSerializer_55\", {\n get: function () {\n if ((this.__UrlSerializer_55 == null)) {\n (this.__UrlSerializer_55 = import39.setupUrlSerializer(this._App_8, this._DeepLinkConfigToken_10));\n }\n return this.__UrlSerializer_55;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_DeepLinker_56\", {\n get: function () {\n if ((this.__DeepLinker_56 == null)) {\n (this.__DeepLinker_56 = import40.setupDeepLinker(this._App_8, this._UrlSerializer_55, this._Location_54, this._ModuleLoader_13, this.componentFactoryResolver));\n }\n return this.__DeepLinker_56;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_ModalController_57\", {\n get: function () {\n if ((this.__ModalController_57 == null)) {\n (this.__ModalController_57 = new import20.ModalController(this._App_8, this._Config_5, this._DeepLinker_56));\n }\n return this.__ModalController_57;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_PickerController_58\", {\n get: function () {\n if ((this.__PickerController_58 == null)) {\n (this.__PickerController_58 = new import21.PickerController(this._App_8, this._Config_5));\n }\n return this.__PickerController_58;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_PopoverController_59\", {\n get: function () {\n if ((this.__PopoverController_59 == null)) {\n (this.__PopoverController_59 = new import22.PopoverController(this._App_8, this._Config_5, this._DeepLinker_56));\n }\n return this.__PopoverController_59;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_TapClick_60\", {\n get: function () {\n if ((this.__TapClick_60 == null)) {\n (this.__TapClick_60 = new import23.TapClick(this._Config_5, this._Platform_4, this._DomController_6, this._App_8, this._GestureController_9));\n }\n return this.__TapClick_60;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_ToastController_61\", {\n get: function () {\n if ((this.__ToastController_61 == null)) {\n (this.__ToastController_61 = new import24.ToastController(this._App_8, this._Config_5));\n }\n return this.__ToastController_61;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_TransitionController_62\", {\n get: function () {\n if ((this.__TransitionController_62 == null)) {\n (this.__TransitionController_62 = new import25.TransitionController(this._Platform_4, this._Config_5));\n }\n return this.__TransitionController_62;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_StatusBar_63\", {\n get: function () {\n if ((this.__StatusBar_63 == null)) {\n (this.__StatusBar_63 = new import26.StatusBar());\n }\n return this.__StatusBar_63;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppModuleInjector.prototype, \"_SplashScreen_64\", {\n get: function () {\n if ((this.__SplashScreen_64 == null)) {\n (this.__SplashScreen_64 = new import27.SplashScreen());\n }\n return this.__SplashScreen_64;\n },\n enumerable: true,\n configurable: true\n });\n AppModuleInjector.prototype.createInternal = function () {\n this._CommonModule_0 = new import2.CommonModule();\n this._ErrorHandler_1 = new import3.IonicErrorHandler();\n this._ConfigToken_2 = null;\n this._PlatformConfigToken_3 = import41.providePlatformConfigs();\n this._Platform_4 = import42.setupPlatform(this.parent.get(import9.DOCUMENT), this._PlatformConfigToken_3, this.parent.get(import0.NgZone));\n this._Config_5 = import43.setupConfig(this._ConfigToken_2, this._Platform_4);\n this._DomController_6 = new import4.DomController(this._Platform_4);\n this._MenuController_7 = new import5.MenuController();\n this._App_8 = new import6.App(this._Config_5, this._Platform_4, this._MenuController_7);\n this._GestureController_9 = new import7.GestureController(this._App_8);\n this._DeepLinkConfigToken_10 = null;\n this._Compiler_11 = new import0.Compiler();\n this._NgModuleLoader_12 = new import8.NgModuleLoader(this._Compiler_11);\n this._ModuleLoader_13 = import44.provideModuleLoader(this._NgModuleLoader_12, this);\n this._APP_INITIALIZER_14 = [\n import0.ɵo,\n import9.ɵc(this.parent.get(import9.NgProbeToken, null), this.parent.get(import0.NgProbeToken, null)),\n import45.registerModeConfigs(this._Config_5),\n import15.setupProvideEvents(this._Platform_4, this._DomController_6),\n import23.setupTapClick(this._Config_5, this._Platform_4, this._DomController_6, this._App_8, this._GestureController_9),\n import44.setupPreloading(this._Config_5, this._DeepLinkConfigToken_10, this._ModuleLoader_13, this.parent.get(import0.NgZone))\n ];\n this._ApplicationInitStatus_15 = new import0.ApplicationInitStatus(this._APP_INITIALIZER_14);\n this._ɵf_16 = new import0.ɵf(this.parent.get(import0.NgZone), this.parent.get(import0.ɵConsole), this, this._ErrorHandler_1, this.componentFactoryResolver, this._ApplicationInitStatus_15);\n this._ApplicationRef_17 = this._ɵf_16;\n this._ApplicationModule_18 = new import0.ApplicationModule(this._ApplicationRef_17);\n this._BrowserModule_19 = new import9.BrowserModule(this.parent.get(import9.BrowserModule, null));\n this._ɵba_20 = new import10.ɵba();\n this._FormsModule_21 = new import10.FormsModule();\n this._ReactiveFormsModule_22 = new import10.ReactiveFormsModule();\n this._IonicModule_23 = new import11.IonicModule();\n this._AppModule_24 = new import1.AppModule();\n this._AppRootToken_44 = import46.MyApp;\n this._APP_BASE_HREF_45 = '/';\n return this._AppModule_24;\n };\n AppModuleInjector.prototype.getInternal = function (token, notFoundResult) {\n if ((token === import2.CommonModule)) {\n return this._CommonModule_0;\n }\n if ((token === import0.ErrorHandler)) {\n return this._ErrorHandler_1;\n }\n if ((token === import43.ConfigToken)) {\n return this._ConfigToken_2;\n }\n if ((token === import41.PlatformConfigToken)) {\n return this._PlatformConfigToken_3;\n }\n if ((token === import42.Platform)) {\n return this._Platform_4;\n }\n if ((token === import43.Config)) {\n return this._Config_5;\n }\n if ((token === import4.DomController)) {\n return this._DomController_6;\n }\n if ((token === import5.MenuController)) {\n return this._MenuController_7;\n }\n if ((token === import6.App)) {\n return this._App_8;\n }\n if ((token === import7.GestureController)) {\n return this._GestureController_9;\n }\n if ((token === import39.DeepLinkConfigToken)) {\n return this._DeepLinkConfigToken_10;\n }\n if ((token === import0.Compiler)) {\n return this._Compiler_11;\n }\n if ((token === import8.NgModuleLoader)) {\n return this._NgModuleLoader_12;\n }\n if ((token === import44.ModuleLoader)) {\n return this._ModuleLoader_13;\n }\n if ((token === import0.APP_INITIALIZER)) {\n return this._APP_INITIALIZER_14;\n }\n if ((token === import0.ApplicationInitStatus)) {\n return this._ApplicationInitStatus_15;\n }\n if ((token === import0.ɵf)) {\n return this._ɵf_16;\n }\n if ((token === import0.ApplicationRef)) {\n return this._ApplicationRef_17;\n }\n if ((token === import0.ApplicationModule)) {\n return this._ApplicationModule_18;\n }\n if ((token === import9.BrowserModule)) {\n return this._BrowserModule_19;\n }\n if ((token === import10.ɵba)) {\n return this._ɵba_20;\n }\n if ((token === import10.FormsModule)) {\n return this._FormsModule_21;\n }\n if ((token === import10.ReactiveFormsModule)) {\n return this._ReactiveFormsModule_22;\n }\n if ((token === import11.IonicModule)) {\n return this._IonicModule_23;\n }\n if ((token === import1.AppModule)) {\n return this._AppModule_24;\n }\n if ((token === import0.LOCALE_ID)) {\n return this._LOCALE_ID_25;\n }\n if ((token === import2.NgLocalization)) {\n return this._NgLocalization_26;\n }\n if ((token === import0.APP_ID)) {\n return this._APP_ID_27;\n }\n if ((token === import0.IterableDiffers)) {\n return this._IterableDiffers_28;\n }\n if ((token === import0.KeyValueDiffers)) {\n return this._KeyValueDiffers_29;\n }\n if ((token === import9.DomSanitizer)) {\n return this._DomSanitizer_30;\n }\n if ((token === import0.Sanitizer)) {\n return this._Sanitizer_31;\n }\n if ((token === import9.HAMMER_GESTURE_CONFIG)) {\n return this._HAMMER_GESTURE_CONFIG_32;\n }\n if ((token === import9.EVENT_MANAGER_PLUGINS)) {\n return this._EVENT_MANAGER_PLUGINS_33;\n }\n if ((token === import9.EventManager)) {\n return this._EventManager_34;\n }\n if ((token === import9.ɵDomSharedStylesHost)) {\n return this._ɵDomSharedStylesHost_35;\n }\n if ((token === import9.ɵDomRendererFactory2)) {\n return this._ɵDomRendererFactory2_36;\n }\n if ((token === import0.RendererFactory2)) {\n return this._RendererFactory2_37;\n }\n if ((token === import9.ɵSharedStylesHost)) {\n return this._ɵSharedStylesHost_38;\n }\n if ((token === import0.Testability)) {\n return this._Testability_39;\n }\n if ((token === import9.Meta)) {\n return this._Meta_40;\n }\n if ((token === import9.Title)) {\n return this._Title_41;\n }\n if ((token === import10.ɵi)) {\n return this._ɵi_42;\n }\n if ((token === import10.FormBuilder)) {\n return this._FormBuilder_43;\n }\n if ((token === import47.AppRootToken)) {\n return this._AppRootToken_44;\n }\n if ((token === import2.APP_BASE_HREF)) {\n return this._APP_BASE_HREF_45;\n }\n if ((token === import13.ActionSheetController)) {\n return this._ActionSheetController_46;\n }\n if ((token === import14.AlertController)) {\n return this._AlertController_47;\n }\n if ((token === import15.Events)) {\n return this._Events_48;\n }\n if ((token === import16.Form)) {\n return this._Form_49;\n }\n if ((token === import17.Haptic)) {\n return this._Haptic_50;\n }\n if ((token === import18.Keyboard)) {\n return this._Keyboard_51;\n }\n if ((token === import19.LoadingController)) {\n return this._LoadingController_52;\n }\n if ((token === import2.LocationStrategy)) {\n return this._LocationStrategy_53;\n }\n if ((token === import2.Location)) {\n return this._Location_54;\n }\n if ((token === import39.UrlSerializer)) {\n return this._UrlSerializer_55;\n }\n if ((token === import40.DeepLinker)) {\n return this._DeepLinker_56;\n }\n if ((token === import20.ModalController)) {\n return this._ModalController_57;\n }\n if ((token === import21.PickerController)) {\n return this._PickerController_58;\n }\n if ((token === import22.PopoverController)) {\n return this._PopoverController_59;\n }\n if ((token === import23.TapClick)) {\n return this._TapClick_60;\n }\n if ((token === import24.ToastController)) {\n return this._ToastController_61;\n }\n if ((token === import25.TransitionController)) {\n return this._TransitionController_62;\n }\n if ((token === import26.StatusBar)) {\n return this._StatusBar_63;\n }\n if ((token === import27.SplashScreen)) {\n return this._SplashScreen_64;\n }\n return notFoundResult;\n };\n AppModuleInjector.prototype.destroyInternal = function () {\n this._ɵf_16.ngOnDestroy();\n (this.__ɵDomSharedStylesHost_35 && this._ɵDomSharedStylesHost_35.ngOnDestroy());\n };\n return AppModuleInjector;\n}(import0.ɵNgModuleInjector));\nexport var AppModuleNgFactory = new import0.NgModuleFactory(AppModuleInjector, import1.AppModule);\n//# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiL1VzZXJzL2dzaGlnZXRvL0RldmVsb3BtZW50L1BsYXlncm91bmQvaW9uaWNFbnZpcm9ubWVudFZhcmlhYmxlcy9zcmMvYXBwL2FwcC5tb2R1bGUubmdmYWN0b3J5LnRzIiwidmVyc2lvbiI6Mywic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibmc6Ly8vVXNlcnMvZ3NoaWdldG8vRGV2ZWxvcG1lbnQvUGxheWdyb3VuZC9pb25pY0Vudmlyb25tZW50VmFyaWFibGVzL3NyYy9hcHAvYXBwLm1vZHVsZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIgIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==\n//# sourceMappingURL=app.module.ngfactory.js.map\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.module.ngfactory.ts"]} \ No newline at end of file diff --git a/config/webpack.config.js b/config/webpack.config.js index f53a698..6b661d0 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -2,7 +2,7 @@ var chalk = require("chalk"); var fs = require('fs'); var path = require('path'); var useDefaultConfig = require('@ionic/app-scripts/config/webpack.config.js'); - +var isNil = require('lodash/isNil'); var env = process.env.MY_ENV; useDefaultConfig.prod.resolve.alias = { @@ -13,7 +13,7 @@ useDefaultConfig.dev.resolve.alias = { "@app/env": path.resolve(environmentPath('dev')) }; -if (env !== 'prod' && env !== 'dev') { +if (!isNil(env) && env !== 'prod' && env !== 'dev') { // Default to dev config useDefaultConfig[env] = useDefaultConfig.dev; useDefaultConfig[env].resolve.alias = {