File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/@angular/cli/tasks Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { NgCliWebpackConfig } from '../models/webpack-config';
99import { CliConfig } from '../models/config' ;
1010import { stripBom } from '../utilities/strip-bom' ;
1111import { AotPlugin , AngularCompilerPlugin } from '@ngtools/webpack' ;
12+ import { PurifyPlugin } from '@angular-devkit/build-optimizer' ;
1213import { LicenseWebpackPlugin } from 'license-webpack-plugin' ;
1314
1415import denodeify = require( 'denodeify' ) ;
@@ -228,6 +229,9 @@ class JsonWebpackSerializer {
228229 args = this . _aotPluginSerialize ( plugin ) ;
229230 this . _addImport ( '@ngtools/webpack' , 'AotPlugin' ) ;
230231 break ;
232+ case PurifyPlugin :
233+ this . _addImport ( '@angular-devkit/build-optimizer' , 'PurifyPlugin' ) ;
234+ break ;
231235 case AngularCompilerPlugin :
232236 args = this . _aotPluginSerialize ( plugin ) ;
233237 this . _addImport ( '@ngtools/webpack' , 'AngularCompilerPlugin' ) ;
You can’t perform that action at this time.
0 commit comments