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 5
5
* Use of this source code is governed by an MIT-style license that can be
6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
+ import { BuildOptimizerWebpackPlugin } from '@angular-devkit/build-optimizer' ;
8
9
import { tags } from '@angular-devkit/core' ;
9
10
import * as CopyWebpackPlugin from 'copy-webpack-plugin' ;
10
11
import * as path from 'path' ;
@@ -251,6 +252,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
251
252
252
253
let buildOptimizerUseRule ;
253
254
if ( buildOptions . buildOptimizer ) {
255
+ extraPlugins . push ( new BuildOptimizerWebpackPlugin ( ) ) ;
254
256
buildOptimizerUseRule = {
255
257
use : [
256
258
{
You can’t perform that action at this time.
0 commit comments