[Trunk | Explore]:

1. package.json: Remove "--sourceMap" flag from server build.
2. main.server.ts: Call enableProdMode when not development environment. 


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59077 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2020-07-12 22:23:47 +00:00
parent e9eca1f4f1
commit b9cf522ff4
2 changed files with 10 additions and 4 deletions

View File

@ -18,10 +18,10 @@
"start:ssr-dev": "npm run build:ssr-dev && npm run serve:ssr", "start:ssr-dev": "npm run build:ssr-dev && npm run serve:ssr",
"start:prerender-dev": "npm run build:prerender-dev && npm run serve:prerender", "start:prerender-dev": "npm run build:prerender-dev && npm run serve:prerender",
"build": "ng build", "build": "ng build",
"build:client-and-server-bundles": "ng build --prod --sourceMap --stats-json=true && ng run openaire-search:server:production", "build:client-and-server-bundles": "ng build --prod --stats-json=true && ng run openaire-search:server:production",
"build:client-and-server-bundles-beta": "ng build --configuration=beta --sourceMap --stats-json=true && ng run openaire-search:server:beta", "build:client-and-server-bundles-beta": "ng build --configuration=beta --stats-json=true && ng run openaire-search:server:beta",
"build:client-and-server-bundles-test": "ng build --configuration=test --sourceMap --stats-json=true && ng run openaire-search:server:test", "build:client-and-server-bundles-test": "ng build --configuration=test --stats-json=true && ng run openaire-search:server:test",
"build:client-and-server-bundles-dev": "ng build --configuration=development --sourceMap --stats-json=true && ng run openaire-search:server:development", "build:client-and-server-bundles-dev": "ng build --configuration=development --stats-json=true && ng run openaire-search:server:development",
"build:prerender": "npm run build:client-and-server-bundles && npm run webpack:server && npm run generate:prerender", "build:prerender": "npm run build:client-and-server-bundles && npm run webpack:server && npm run generate:prerender",
"build:ssr": "npm run build:client-and-server-bundles && npm run webpack:server", "build:ssr": "npm run build:client-and-server-bundles && npm run webpack:server",
"build:prerender-beta": "npm run build:client-and-server-bundles-beta && npm run webpack:server && npm run generate:prerender", "build:prerender-beta": "npm run build:client-and-server-bundles-beta && npm run webpack:server && npm run generate:prerender",

View File

@ -1 +1,7 @@
import {enableProdMode} from "@angular/core";
import {properties} from "./environments/environment";
if (properties.environment !== "development") {
enableProdMode();
}
export { AppServerModule } from './app/app.server.module'; export { AppServerModule } from './app/app.server.module';