mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00

When inlining CSS, Angular Universal needs to extract critical styles.
This seems to take up a significant chunk of processing time.
However, loading may appear less smooth when this feature is disabled.
Added to the configuration to make it easier to A/B test this without a full re-build.
(cherry picked from commit 38a058d7af
)
14 lines
273 B
TypeScript
14 lines
273 B
TypeScript
import { BuildConfig } from '../config/build-config.interface';
|
|
|
|
export const environment: Partial<BuildConfig> = {
|
|
production: true,
|
|
|
|
// Angular Universal settings
|
|
universal: {
|
|
preboot: true,
|
|
async: true,
|
|
time: false,
|
|
inlineCriticalCss: true,
|
|
}
|
|
};
|