Nuria has submitted this change and it was merged.

Change subject: Version the bundles same as the main scripts
......................................................................


Version the bundles same as the main scripts

Change-Id: I99749bb0feb1d378226493f6faf1cc7e2eb254cf
---
M gulpfile.js
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Nuria: Verified; Looks good to me, approved



diff --git a/gulpfile.js b/gulpfile.js
index 75fdc13..13b2f80 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -183,6 +183,12 @@
 });
 
 gulp.task('js', ['lint', 'clean'], function () {
+    // version the names of all the bundles, so they can bust caches
+    Object.keys(layout.requireJsOptimizerConfig.bundles).forEach(function 
(bundle) {
+        layout.requireJsOptimizerConfig.bundles[bundle + '-' + layout.version] 
= layout.requireJsOptimizerConfig.bundles[bundle];
+        delete layout.requireJsOptimizerConfig.bundles[bundle];
+    });
+
     // Discovers all AMD dependencies, concatenates together all required .js 
files, minifies them
     rjs(layout.requireJsOptimizerConfig)
         .pipe(uglify({

-- 
To view, visit https://gerrit.wikimedia.org/r/237108
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I99749bb0feb1d378226493f6faf1cc7e2eb254cf
Gerrit-PatchSet: 1
Gerrit-Project: analytics/dashiki
Gerrit-Branch: master
Gerrit-Owner: Milimetric <[email protected]>
Gerrit-Reviewer: Nuria <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to