Skip to content

Commit

Permalink
fix order of asset optimization to fix conflict between compression-p…
Browse files Browse the repository at this point in the history
…lugin and real hash plugin
  • Loading branch information
sokra committed Oct 16, 2020
1 parent 8379037 commit 204caee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/Compilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3443,14 +3443,14 @@ Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE = 1000;
Compilation.PROCESS_ASSETS_STAGE_DEV_TOOLING = 2000;

/**
* Optimize the transfer of existing assets, e. g. by preparing a compressed (gzip) file as separate asset.
* Optimize the hashes of the assets, e. g. by generating real hashes of the asset content.
*/
Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER = 3000;
Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_HASH = 2500;

/**
* Optimize the hashes of the assets, e. g. by generating real hashes of the asset content.
* Optimize the transfer of existing assets, e. g. by preparing a compressed (gzip) file as separate asset.
*/
Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_HASH = 3500;
Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER = 3000;

/**
* Analyse existing assets.
Expand Down
8 changes: 4 additions & 4 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1547,14 +1547,14 @@ declare class Compilation {
static PROCESS_ASSETS_STAGE_DEV_TOOLING: number;

/**
* Optimize the transfer of existing assets, e. g. by preparing a compressed (gzip) file as separate asset.
* Optimize the hashes of the assets, e. g. by generating real hashes of the asset content.
*/
static PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER: number;
static PROCESS_ASSETS_STAGE_OPTIMIZE_HASH: number;

/**
* Optimize the hashes of the assets, e. g. by generating real hashes of the asset content.
* Optimize the transfer of existing assets, e. g. by preparing a compressed (gzip) file as separate asset.
*/
static PROCESS_ASSETS_STAGE_OPTIMIZE_HASH: number;
static PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER: number;

/**
* Analyse existing assets.
Expand Down

0 comments on commit 204caee

Please sign in to comment.