zonemaster / zonemaster-gui

The Zonemaster GUI - part of the Zonemaster project
Other
14 stars 22 forks source link

Avoid bundling the mock interceptor in prod env #448

Closed hannaeko closed 2 months ago

hannaeko commented 8 months ago

Purpose

Exclude mock.interceptor.ts from the build file.

Context

Since Angular 9, the trick used to exclude mock.interceptor.ts no longer works. This PR aims at correcting that.

Changes

Import mock.interceptor.ts in the environment file instead of in app.module.ts .

How to test this PR

Before the change, after running npm run build

matsduf commented 8 months ago

Can this be postponed to v2024.1 instead of adding it this late in the cycle? What will happen if the change is not done?