This repository was archived by the owner on Apr 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed
packages/angular_devkit/build_angular
src/angular-cli-files/models/webpack-configs Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 1515 "@ngtools/webpack" : " 0.0.0" ,
1616 "ajv" : " ~6.4.0" ,
1717 "autoprefixer" : " ^8.4.1" ,
18- "cache-loader" : " ^1.2.2" ,
1918 "circular-dependency-plugin" : " ^5.0.2" ,
2019 "clean-css" : " ^4.1.11" ,
2120 "copy-webpack-plugin" : " ^4.5.1" ,
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ const StatsPlugin = require('stats-webpack-plugin');
3535 * require('raw-loader')
3636 * require('url-loader')
3737 * require('file-loader')
38- * require('cache-loader')
3938 * require('@angular-devkit/build-optimizer')
4039 */
4140
@@ -161,18 +160,8 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
161160
162161 let buildOptimizerUseRule ;
163162 if ( buildOptions . buildOptimizer ) {
164- // Set the cache directory to the Build Optimizer dir, so that package updates will delete it.
165- const buildOptimizerDir = g [ '_DevKitIsLocal' ]
166- ? nodeModules
167- : path . dirname ( require . resolve ( '@angular-devkit/build-optimizer' , { paths : [ projectRoot ] } ) ) ;
168- const cacheDirectory = path . resolve ( buildOptimizerDir , './.cache/' ) ;
169-
170163 buildOptimizerUseRule = {
171164 use : [
172- {
173- loader : 'cache-loader' ,
174- options : { cacheDirectory }
175- } ,
176165 {
177166 loader : buildOptimizerLoader ,
178167 options : { sourceMap : buildOptions . sourceMap }
You can’t perform that action at this time.
0 commit comments