mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-23 15:36:23 +08:00
fix(@angular/cli): add PurifyPlugin to eject
This commit is contained in:
parent
5b01189469
commit
a24e644392
@ -9,6 +9,7 @@ import { NgCliWebpackConfig } from '../models/webpack-config';
|
|||||||
import { CliConfig } from '../models/config';
|
import { CliConfig } from '../models/config';
|
||||||
import { stripBom } from '../utilities/strip-bom';
|
import { stripBom } from '../utilities/strip-bom';
|
||||||
import { AotPlugin, AngularCompilerPlugin } from '@ngtools/webpack';
|
import { AotPlugin, AngularCompilerPlugin } from '@ngtools/webpack';
|
||||||
|
import { PurifyPlugin } from '@angular-devkit/build-optimizer';
|
||||||
import { LicenseWebpackPlugin } from 'license-webpack-plugin';
|
import { LicenseWebpackPlugin } from 'license-webpack-plugin';
|
||||||
|
|
||||||
import denodeify = require('denodeify');
|
import denodeify = require('denodeify');
|
||||||
@ -228,6 +229,9 @@ class JsonWebpackSerializer {
|
|||||||
args = this._aotPluginSerialize(plugin);
|
args = this._aotPluginSerialize(plugin);
|
||||||
this._addImport('@ngtools/webpack', 'AotPlugin');
|
this._addImport('@ngtools/webpack', 'AotPlugin');
|
||||||
break;
|
break;
|
||||||
|
case PurifyPlugin:
|
||||||
|
this._addImport('@angular-devkit/build-optimizer', 'PurifyPlugin');
|
||||||
|
break;
|
||||||
case AngularCompilerPlugin:
|
case AngularCompilerPlugin:
|
||||||
args = this._aotPluginSerialize(plugin);
|
args = this._aotPluginSerialize(plugin);
|
||||||
this._addImport('@ngtools/webpack', 'AngularCompilerPlugin');
|
this._addImport('@ngtools/webpack', 'AngularCompilerPlugin');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user