Skip to content

Instantly share code, notes, and snippets.

View mariotacke's full-sized avatar
💻
Specializing in the outrageous.

Mario Tacke mariotacke

💻
Specializing in the outrageous.
View GitHub Profile
@mariotacke
mariotacke / README.md
Last active July 5, 2021 07:44
Gulp replace to invalidate cache

Gulp replace to invalidate cache

This demo replaces the string @@VERSION with the current unix timestamp when building with gulp. @@VERSION is a query parameter to bundle.js. To avoid caching bundle.js, we add the timestamp to it during each build.

Usage

npm install
npm run build