File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 55 * Use of this source code is governed by an MIT-style license that can be
66 * found in the LICENSE file at https://angular.io/license
77 */
8+ import { BuildOptimizerWebpackPlugin } from '@angular-devkit/build-optimizer' ;
89import { tags } from '@angular-devkit/core' ;
910import * as CopyWebpackPlugin from 'copy-webpack-plugin' ;
1011import * as path from 'path' ;
@@ -251,6 +252,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
251252
252253 let buildOptimizerUseRule ;
253254 if ( buildOptions . buildOptimizer ) {
255+ extraPlugins . push ( new BuildOptimizerWebpackPlugin ( ) ) ;
254256 buildOptimizerUseRule = {
255257 use : [
256258 {
You can’t perform that action at this time.
0 commit comments