Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Commit

Permalink
fix(@angular-devkit/build-angular): remove build optimizer cache
Browse files Browse the repository at this point in the history
Fixes: #913
  • Loading branch information
clydin authored and hansl committed May 30, 2018
1 parent ff00626 commit ee65cc7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion packages/angular_devkit/build_angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@ngtools/webpack": "0.0.0",
"ajv": "~6.4.0",
"autoprefixer": "^8.4.1",
"cache-loader": "^1.2.2",
"circular-dependency-plugin": "^5.0.2",
"clean-css": "^4.1.11",
"copy-webpack-plugin": "^4.5.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const StatsPlugin = require('stats-webpack-plugin');
* require('raw-loader')
* require('url-loader')
* require('file-loader')
* require('cache-loader')
* require('@angular-devkit/build-optimizer')
*/

Expand Down Expand Up @@ -161,18 +160,8 @@ export function getCommonConfig(wco: WebpackConfigOptions) {

let buildOptimizerUseRule;
if (buildOptions.buildOptimizer) {
// Set the cache directory to the Build Optimizer dir, so that package updates will delete it.
const buildOptimizerDir = g['_DevKitIsLocal']
? nodeModules
: path.dirname(require.resolve('@angular-devkit/build-optimizer', { paths: [projectRoot] }));
const cacheDirectory = path.resolve(buildOptimizerDir, './.cache/');

buildOptimizerUseRule = {
use: [
{
loader: 'cache-loader',
options: { cacheDirectory }
},
{
loader: buildOptimizerLoader,
options: { sourceMap: buildOptions.sourceMap }
Expand Down

0 comments on commit ee65cc7

Please sign in to comment.