We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8cdfa6 commit 4ede5b6Copy full SHA for 4ede5b6
tests/legacy-cli/e2e/tests/build/jit-prod.ts
@@ -0,0 +1,15 @@
1
+import { ng } from '../../utils/process';
2
+import { updateJsonFile } from '../../utils/project';
3
+
4
5
+export default async function () {
6
+ // Make prod use JIT.
7
+ await updateJsonFile('angular.json', configJson => {
8
+ const appArchitect = configJson.projects['test-project'].architect;
9
+ appArchitect.build.configurations['production'].aot = false;
10
+ appArchitect.build.configurations['production'].buildOptimizer = false;
11
+ });
12
13
+ // Test it works
14
+ await ng('e2e', '--prod');
15
+}
0 commit comments