Skip to content

Instantly share code, notes, and snippets.

@josfaber
Created November 24, 2021 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josfaber/dd9ab6d9abd94b500c2ea3237da52d39 to your computer and use it in GitHub Desktop.
Save josfaber/dd9ab6d9abd94b500c2ea3237da52d39 to your computer and use it in GitHub Desktop.
Add version to webpack-assets-manifest
const WebpackAssetsManifest = require( 'webpack-assets-manifest' );
const manifest = new WebpackAssetsManifest( {
transform( assets, manifest ) {
assets["version" ] = new Date().getTime().toString();
},
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment