Skip to content
Snippets Groups Projects
Commit 311c4004 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: enable Prod mode

parent a48b1e28
No related branches found
No related tags found
No related merge requests found
import { enableProdMode } from '@angular/core';
enableProdMode()
import './main-common'
/* aot === production mode */
if (PRODUCTION) { console.log(`Interactive Atlas Viewer: ${VERSION}`) }
import 'zone.js'
import 'third_party/testSafari.js'
import { enableProdMode } from '@angular/core';
import { defineCustomElements } from 'hbp-connectivity-component/dist/loader'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
import { MainModule } from './main.module';
if (PRODUCTION) enableProdMode()
if (PRODUCTION) { console.log(`Interactive Atlas Viewer: ${VERSION}`) }
const requireAll = (r: any) => {r.keys().forEach(r)}
requireAll(require.context('./res/ext', false, /\.json$/))
requireAll(require.context('./res/images', true, /\.jpg$|\.png$|\.svg$/))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment