Created
November 24, 2021 15:16
-
-
Save josfaber/dd9ab6d9abd94b500c2ea3237da52d39 to your computer and use it in GitHub Desktop.
Add version to webpack-assets-manifest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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