Closed hannaeko closed 2 months ago
Exclude mock.interceptor.ts from the build file.
mock.interceptor.ts
Since Angular 9, the trick used to exclude mock.interceptor.ts no longer works. This PR aims at correcting that.
Import mock.interceptor.ts in the environment file instead of in app.module.ts .
app.module.ts
Before the change, after running npm run build
npm run build
940.51 kB
% grep -ic progress.afnic.fr dist/en/main.*.js 1
after,
914.67 kB
% grep -ic progress.afnic.fr dist/en/main.*.js 0
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?
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 inapp.module.ts
.How to test this PR
Before the change, after running
npm run build
npm run build
command) is940.51 kB
after,
npm run build
command) is914.67 kB