mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 15:02:11 +08:00
refactor: clean up remove unused code
This commit is contained in:
parent
ebf3fab921
commit
05a52c8c59
@ -16,7 +16,6 @@ import {
|
||||
CommandDescriptionMap,
|
||||
CommandScope,
|
||||
Option,
|
||||
SubCommandDescription,
|
||||
} from './interface';
|
||||
|
||||
export interface BaseCommandOptions {
|
||||
|
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import { first, last, tap } from 'rxjs/operators';
|
||||
import { last, tap } from 'rxjs/operators';
|
||||
import { promisify } from 'util';
|
||||
import { execute } from '../../index';
|
||||
import { BASE_OPTIONS, KARMA_BUILDER_INFO, describeBuilder } from '../setup';
|
||||
|
@ -202,13 +202,11 @@ export class WebpackResourceLoader {
|
||||
);
|
||||
|
||||
let finalContent: string | undefined;
|
||||
let finalMap: string | undefined;
|
||||
childCompiler.hooks.compilation.tap('angular-compiler', (childCompilation) => {
|
||||
childCompilation.hooks.processAssets.tap(
|
||||
{ name: 'angular-compiler', stage: webpack.Compilation.PROCESS_ASSETS_STAGE_REPORT },
|
||||
() => {
|
||||
finalContent = childCompilation.assets[outputFilePath]?.source().toString();
|
||||
finalMap = childCompilation.assets[outputFilePath + '.map']?.source().toString();
|
||||
|
||||
delete childCompilation.assets[outputFilePath];
|
||||
delete childCompilation.assets[outputFilePath + '.map'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user