diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/aotplugin.config.json b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/aotplugin.config.json
deleted file mode 100644
index b6d2d7a7816d..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/aotplugin.config.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "tsConfigPath": "./not/so/source/tsconfig.json",
- "mainPath": "app/main.jit.ts"
-}
\ No newline at end of file
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.component.html b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.component.html
deleted file mode 100644
index 3505c196ea74..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.component.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-DEBUG_ONLY
-
-
-
-PRODUCTION_ONLY
-
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.component.scss b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.component.scss
deleted file mode 100644
index ba143f5d5da1..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.component.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-:host {
- background-color: blue;
-}
-
-// @ifdef DEBUG
-:host::before {
- content: 'DEBUG_ONLY';
-}
-// @endif
-
-// @ifndef DEBUG
-:host::before {
- content: 'PRODUCTION_ONLY';
-}
-// @endif
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.component.ts b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.component.ts
deleted file mode 100644
index 09a19ad8f1ac..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.component.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import {Component, ViewEncapsulation} from '@angular/core';
-
-
-@Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.scss'],
- encapsulation: ViewEncapsulation.None
-})
-export class AppComponent { }
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.module.ts b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.module.ts
deleted file mode 100644
index 2bcd6c4883bd..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/app.module.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { NgModule, Component } from '@angular/core';
-import { BrowserModule } from '@angular/platform-browser';
-import { RouterModule } from '@angular/router';
-import { AppComponent } from './app.component';
-
-@Component({
- selector: 'home-view',
- template: 'home!'
-})
-export class HomeView {}
-
-
-// @ifdef DEBUG
-console.log("DEBUG_ONLY");
-// @endif
-
-// @ifndef DEBUG
-console.log("PRODUCTION_ONLY");
-// @endif
-
-
-@NgModule({
- declarations: [
- AppComponent,
- HomeView
- ],
- imports: [
- BrowserModule,
- RouterModule.forRoot([
- {path: 'lazy', loadChildren: './lazy.module#LazyModule'},
- {path: '', component: HomeView}
- ])
- ],
- bootstrap: [AppComponent]
-})
-export class AppModule { }
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/feature/feature.module.ts b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/feature/feature.module.ts
deleted file mode 100644
index f464ca028b05..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/feature/feature.module.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import {NgModule, Component} from '@angular/core';
-import {RouterModule} from '@angular/router';
-
-@Component({
- selector: 'feature-component',
- template: 'foo.html'
-})
-export class FeatureComponent {}
-
-@NgModule({
- declarations: [
- FeatureComponent
- ],
- imports: [
- RouterModule.forChild([
- { path: '', component: FeatureComponent}
- ])
- ]
-})
-export class FeatureModule {}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/feature/lazy-feature.module.ts b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/feature/lazy-feature.module.ts
deleted file mode 100644
index b7d72eab327b..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/feature/lazy-feature.module.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import {NgModule, Component} from '@angular/core';
-import {RouterModule} from '@angular/router';
-
-@Component({
- selector: 'lazy-feature-comp',
- template: 'lazy feature!'
-})
-export class LazyFeatureComponent {}
-
-@NgModule({
- imports: [
- RouterModule.forChild([
- {path: '', component: LazyFeatureComponent, pathMatch: 'full'},
- {path: 'feature', loadChildren: './feature.module#FeatureModule'}
- ])
- ],
- declarations: [LazyFeatureComponent]
-})
-export class LazyFeatureModule {}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/lazy.module.ts b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/lazy.module.ts
deleted file mode 100644
index 32c07594ac3d..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/lazy.module.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import {NgModule, Component} from '@angular/core';
-import {RouterModule} from '@angular/router';
-
-@Component({
- selector: 'lazy-comp',
- template: 'lazy!'
-})
-export class LazyComponent {}
-
-@NgModule({
- imports: [
- RouterModule.forChild([
- {path: '', component: LazyComponent, pathMatch: 'full'},
- {path: 'feature', loadChildren: './feature/feature.module#FeatureModule'},
- {path: 'lazy-feature', loadChildren: './feature/lazy-feature.module#LazyFeatureModule'}
- ]),
- ],
- declarations: [LazyComponent]
-})
-export class LazyModule {}
-
-export class SecondModule {}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/main.jit.ts b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/main.jit.ts
deleted file mode 100644
index a2a7a6c6b76c..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/app/main.jit.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import 'core-js/proposals/reflect-metadata';
-import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
-import {AppModule} from './app.module';
-
-platformBrowserDynamic().bootstrapModule(AppModule);
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/index.html b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/index.html
deleted file mode 100644
index 89fb0893c35d..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/index.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- Document
-
-
-
-
-
-
-
-
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/tsconfig.json b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/tsconfig.json
deleted file mode 100644
index 20c6851c877c..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/tsconfig.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "compilerOptions": {
- "module": "es2015",
- "moduleResolution": "node",
- "target": "es5",
- "noImplicitAny": false,
- "sourceMap": true,
- "mapRoot": "",
- "emitDecoratorMetadata": true,
- "experimentalDecorators": true,
- "lib": [
- "es2017",
- "dom"
- ],
- "outDir": "lib",
- "skipLibCheck": true,
- "rootDir": "."
- },
- "angularCompilerOptions": {
- "enableIvy": true,
- "disableTypeScriptVersionCheck": true
- "genDir": "app/generated/",
- "entryModule": "app/app.module#AppModule"
- }
-}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/package.json b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/package.json
deleted file mode 100644
index 4ee98497234f..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/package.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "test",
- "license": "MIT",
- "dependencies": {
- "@angular/common": "9.0.0",
- "@angular/compiler": "9.0.0",
- "@angular/compiler-cli": "9.0.0",
- "@angular/core": "9.0.0",
- "@angular/platform-browser": "9.0.0",
- "@angular/platform-browser-dynamic": "9.0.0",
- "@angular/platform-server": "9.0.0",
- "@angular/router": "9.0.0",
- "@ngtools/webpack": "0.0.0",
- "core-js": "^3.0.0",
- "rxjs": "^6.4.2",
- "zone.js": "^0.9.1"
- },
- "devDependencies": {
- "node-sass": "^4.7.0",
- "performance-now": "^0.2.0",
- "preprocess-loader": "^0.2.2",
- "raw-loader": "^0.5.1",
- "sass-loader": "^6.0.0",
- "typescript": "~3.6.4",
- "webpack": "~4.0.1",
- "webpack-cli": "~2.0.9"
- }
-}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/webpack.config.js b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/webpack.config.js
deleted file mode 100644
index cf5f4020dde2..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/webpack.config.js
+++ /dev/null
@@ -1,38 +0,0 @@
-const ngToolsWebpack = require('@ngtools/webpack');
-const path = require('path');
-
-const flags = require('./webpack.flags.json');
-
-const preprocessLoader = 'preprocess-loader' + (flags.DEBUG ? '?+DEBUG' : '');
-
-
-module.exports = {
- resolve: {
- extensions: ['.ts', '.js']
- },
- entry: './not/so/source/app/main.jit.ts',
- output: {
- path: path.resolve('./dist'),
- publicPath: 'dist/',
- filename: 'app.main.js'
- },
- plugins: [
- new ngToolsWebpack.AngularCompilerPlugin(require('./aotplugin.config.json'))
- ],
- module: {
- rules: [
- { test: /\.scss$/, loaders: ['raw-loader', 'sass-loader', preprocessLoader] },
- { test: /\.css$/, loader: 'raw-loader' },
- { test: /\.html$/, loaders: ['raw-loader', preprocessLoader] },
- // Use preprocess to remove DEBUG only code.
- // @ngtools/webpack must be the first (right most) loader.
- { test: /\.ts$/, use: [
- { loader: preprocessLoader },
- { loader: '@ngtools/webpack' }
- ] }
- ]
- },
- devServer: {
- historyApiFallback: true
- }
-};
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/webpack.flags.json b/tests/legacy-cli/e2e/assets/webpack/test-app-weird/webpack.flags.json
deleted file mode 100644
index aac05f738dc8..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-app-weird/webpack.flags.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "DEBUG": false
-}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.component.html b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.component.html
deleted file mode 100644
index 5a532db9308f..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.component.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.component.scss b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.component.scss
deleted file mode 100644
index 5cde7b922336..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.component.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-:host {
- background-color: blue;
-}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.component.ts b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.component.ts
deleted file mode 100644
index 82a4059565d3..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.component.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import {Component, ViewEncapsulation} from '@angular/core';
-import {MyInjectable} from './injectable';
-
-
-@Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.scss'],
- encapsulation: ViewEncapsulation.None
-})
-export class AppComponent {
- constructor(public inj: MyInjectable) {
- console.log(inj);
- }
-}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.module.ts b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.module.ts
deleted file mode 100644
index 7c8a0c296448..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/app.module.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { NgModule, Component } from '@angular/core';
-import { ServerModule } from '@angular/platform-server';
-import { BrowserModule } from '@angular/platform-browser';
-import { RouterModule } from '@angular/router';
-
-import { AppComponent } from './app.component';
-import { MyInjectable } from './injectable';
-
-@Component({
- selector: 'home-view',
- template: 'home!'
-})
-export class HomeView {}
-
-
-@NgModule({
- declarations: [
- AppComponent,
- HomeView
- ],
- imports: [
- BrowserModule.withServerTransition({
- appId: 'app'
- }),
- ServerModule,
- RouterModule.forRoot([
- {path: 'lazy', loadChildren: './lazy.module#LazyModule'},
- {path: '', component: HomeView}
- ])
- ],
- providers: [MyInjectable],
- bootstrap: [AppComponent]
-})
-export class AppModule {
- static testProp: string;
-}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/feature/feature.module.ts b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/feature/feature.module.ts
deleted file mode 100644
index f464ca028b05..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/feature/feature.module.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import {NgModule, Component} from '@angular/core';
-import {RouterModule} from '@angular/router';
-
-@Component({
- selector: 'feature-component',
- template: 'foo.html'
-})
-export class FeatureComponent {}
-
-@NgModule({
- declarations: [
- FeatureComponent
- ],
- imports: [
- RouterModule.forChild([
- { path: '', component: FeatureComponent}
- ])
- ]
-})
-export class FeatureModule {}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/feature/lazy-feature.module.ts b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/feature/lazy-feature.module.ts
deleted file mode 100644
index b7d72eab327b..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/feature/lazy-feature.module.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import {NgModule, Component} from '@angular/core';
-import {RouterModule} from '@angular/router';
-
-@Component({
- selector: 'lazy-feature-comp',
- template: 'lazy feature!'
-})
-export class LazyFeatureComponent {}
-
-@NgModule({
- imports: [
- RouterModule.forChild([
- {path: '', component: LazyFeatureComponent, pathMatch: 'full'},
- {path: 'feature', loadChildren: './feature.module#FeatureModule'}
- ])
- ],
- declarations: [LazyFeatureComponent]
-})
-export class LazyFeatureModule {}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/injectable.ts b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/injectable.ts
deleted file mode 100644
index 3ed533966fe7..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/injectable.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import {Injectable, Inject} from '@angular/core';
-import {DOCUMENT} from '@angular/common';
-
-
-@Injectable()
-export class MyInjectable {
- constructor(@Inject(DOCUMENT) public doc) {}
-}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/lazy.module.ts b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/lazy.module.ts
deleted file mode 100644
index 7430b634ec68..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/lazy.module.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import {NgModule, Component} from '@angular/core';
-import {RouterModule} from '@angular/router';
-
-@Component({
- selector: 'lazy-comp',
- template: 'lazy!'
-})
-export class LazyComponent {}
-
-@NgModule({
- imports: [
- RouterModule.forChild([
- {path: '', component: LazyComponent, pathMatch: 'full'},
- {path: 'feature', loadChildren: './feature/feature.module#FeatureModule'},
- {path: 'lazy-feature', loadChildren: './feature/lazy-feature.module#LazyFeatureModule'}
- ])
- ],
- declarations: [LazyComponent]
-})
-export class LazyModule {}
-
-export class SecondModule {}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/main.commonjs.ts b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/main.commonjs.ts
deleted file mode 100644
index ce26d93a11de..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/main.commonjs.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { AppModule } from './app.module';
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/main.ts b/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/main.ts
deleted file mode 100644
index 647681b8b76c..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/app/main.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import 'core-js/proposals/reflect-metadata';
-import {platformDynamicServer, renderModule} from '@angular/platform-server';
-import {AppModule} from './app.module';
-
-AppModule.testProp = 'testing';
-
-platformDynamicServer().bootstrapModule(AppModule);
-
-renderModule(AppModule, {
- document: '',
- url: '/'
-});
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/index.html b/tests/legacy-cli/e2e/assets/webpack/test-server-app/index.html
deleted file mode 100644
index 89fb0893c35d..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/index.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- Document
-
-
-
-
-
-
-
-
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/index.js b/tests/legacy-cli/e2e/assets/webpack/test-server-app/index.js
deleted file mode 100644
index bdfb2e792acd..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-const fs = require('fs');
-const { AppModuleNgFactory } = require('./dist/app.main');
-const { renderModuleFactory } = require('@angular/platform-server');
-
-require('zone.js/dist/zone-node');
-
-renderModuleFactory(AppModuleNgFactory, {
- url: '/',
- document: ''
-}).then(html => {
- fs.writeFileSync('dist/index.html', html);
-})
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/package.json b/tests/legacy-cli/e2e/assets/webpack/test-server-app/package.json
deleted file mode 100644
index 85e57a5da5b5..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/package.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "test",
- "license": "MIT",
- "dependencies": {
- "@angular/animations": "9.0.0",
- "@angular/common": "9.0.0",
- "@angular/compiler": "9.0.0",
- "@angular/compiler-cli": "9.0.0",
- "@angular/core": "9.0.0",
- "@angular/platform-browser": "9.0.0",
- "@angular/platform-browser-dynamic": "9.0.0",
- "@angular/platform-server": "9.0.0",
- "@angular/router": "9.0.0",
- "@ngtools/webpack": "0.0.0",
- "core-js": "^3.0.0",
- "rxjs": "^6.4.2",
- "zone.js": "^0.9.1"
- },
- "devDependencies": {
- "node-sass": "^4.5.0",
- "performance-now": "^0.2.0",
- "raw-loader": "^0.5.1",
- "sass-loader": "^6.0.3",
- "typescript": "~3.6.4",
- "webpack": "~4.0.1",
- "webpack-cli": "~2.0.9"
- }
-}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/tsconfig.json b/tests/legacy-cli/e2e/assets/webpack/test-server-app/tsconfig.json
deleted file mode 100644
index 5e63e01f6871..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/tsconfig.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "compilerOptions": {
- "baseUrl": "",
- "module": "es2015",
- "moduleResolution": "node",
- "target": "es5",
- "noImplicitAny": false,
- "sourceMap": true,
- "mapRoot": "",
- "emitDecoratorMetadata": true,
- "experimentalDecorators": true,
- "lib": [
- "es2017",
- "dom"
- ],
- "outDir": "lib",
- "skipLibCheck": true,
- "rootDir": "."
- },
- "angularCompilerOptions": {
- "enableIvy": false,
- "disableTypeScriptVersionCheck": true,
- "genDir": "./app/ngfactory",
- "entryModule": "app/app.module#AppModule"
- }
-}
diff --git a/tests/legacy-cli/e2e/assets/webpack/test-server-app/webpack.config.js b/tests/legacy-cli/e2e/assets/webpack/test-server-app/webpack.config.js
deleted file mode 100644
index 2905841b3e54..000000000000
--- a/tests/legacy-cli/e2e/assets/webpack/test-server-app/webpack.config.js
+++ /dev/null
@@ -1,33 +0,0 @@
-const { AngularCompilerPlugin, PLATFORM } = require('@ngtools/webpack');
-const path = require('path');
-
-module.exports = {
- resolve: {
- extensions: ['.ts', '.js']
- },
- target: 'web',
- entry: './app/main.ts',
- output: {
- path: path.resolve('./dist'),
- publicPath: 'dist/',
- filename: 'app.main.js'
- },
- plugins: [
- new AngularCompilerPlugin({
- tsConfigPath: './tsconfig.json',
- mainPath: './app/main.ts',
- platform: PLATFORM.Server
- })
- ],
- module: {
- rules: [
- { test: /\.scss$/, loaders: ['raw-loader', 'sass-loader'] },
- { test: /\.css$/, loader: 'raw-loader' },
- { test: /\.html$/, loader: 'raw-loader' },
- { test: /\.ts$/, loader: '@ngtools/webpack' }
- ]
- },
- devServer: {
- historyApiFallback: true
- }
-};
diff --git a/tests/legacy-cli/e2e/tests/packages/webpack/server-app.ts b/tests/legacy-cli/e2e/tests/packages/webpack/server-app.ts
deleted file mode 100644
index 992cbe4de699..000000000000
--- a/tests/legacy-cli/e2e/tests/packages/webpack/server-app.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { normalize } from 'path';
-import { createProjectFromAsset } from '../../../utils/assets';
-import { exec } from '../../../utils/process';
-import { expectFileToMatch } from '../../../utils/fs';
-
-
-export default function (skipCleaning: () => void) {
- // This test was broken as it was a copy of the ng2 server test
- // and did not actually test ng5
- return;
-
- return Promise.resolve()
- .then(() => createProjectFromAsset('webpack/test-server-app'))
- .then(() => exec(normalize('node_modules/.bin/webpack-cli')))
- .then(() => expectFileToMatch('dist/app.main.js',
- new RegExp('MyInjectable.ctorParameters = .*'
- + 'type: undefined, decorators.*Inject.*args: .*DOCUMENT.*')))
- .then(() => expectFileToMatch('dist/app.main.js',
- new RegExp('AppComponent.ctorParameters = .*MyInjectable')))
- .then(() => expectFileToMatch('dist/app.main.js',
- /AppModule \*\/\].*\.testProp = \'testing\'/))
- .then(() => expectFileToMatch('dist/app.main.js',
- /platformServer \*\/\]\)\(\)\.bootstrapModuleFactory\(.*\/\* AppModuleNgFactory \*\/\]/))
- .then(() => expectFileToMatch('dist/app.main.js',
- /renderModuleFactory \*\/\].*\/\* AppModuleNgFactory \*\/\]/))
- .then(() => skipCleaning());
-}
diff --git a/tests/legacy-cli/e2e/tests/packages/webpack/weird-app.ts b/tests/legacy-cli/e2e/tests/packages/webpack/weird-app.ts
deleted file mode 100644
index 99b012c98d0a..000000000000
--- a/tests/legacy-cli/e2e/tests/packages/webpack/weird-app.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-import {normalize} from 'path';
-
-import {createProjectFromAsset} from '../../../utils/assets';
-import {exec} from '../../../utils/process';
-import {updateJsonFile} from '../../../utils/project';
-import {expectFileSizeToBeUnder, expectFileToExist, expectFileToMatch} from '../../../utils/fs';
-import {expectToFail} from '../../../utils/utils';
-
-
-export default function(skipCleaning: () => void) {
- // This test was broken in angular 8
- return;
-
- return Promise.resolve()
- .then(() => createProjectFromAsset('webpack/test-app-weird'))
- .then(() => exec(normalize('node_modules/.bin/webpack-cli')))
- .then(() => expectFileToExist('dist/app.main.js'))
- .then(() => expectFileToExist('dist/0.app.main.js'))
- .then(() => expectFileToExist('dist/1.app.main.js'))
- .then(() => expectFileToExist('dist/2.app.main.js'))
- .then(() => expectFileSizeToBeUnder('dist/app.main.js', 410000))
- .then(() => expectFileSizeToBeUnder('dist/0.app.main.js', 40000))
-
- // Verify that we're using the production environment.
- .then(() => expectFileToMatch('dist/app.main.js', /PRODUCTION_ONLY/))
- .then(() => expectToFail(() => expectFileToMatch('dist/app.main.js', /DEBUG_ONLY/)))
-
- // Verify that we're using the debug environment now.
- .then(() => updateJsonFile('webpack.flags.json', json => {
- json['DEBUG'] = true;
- }))
- .then(() => exec(normalize('node_modules/.bin/webpack-cli')))
- .then(() => expectFileToMatch('dist/app.main.js', /DEBUG_ONLY/))
- .then(() => expectToFail(() => expectFileToMatch('dist/app.main.js', /PRODUCTION_ONLY/)))
-
- .then(() => skipCleaning());
-}