From 1af36d26436f7883cc503cfddbcc317919ac738c Mon Sep 17 00:00:00 2001 From: Nick Martin Date: Wed, 25 Apr 2012 15:26:59 -0700 Subject: [PATCH] Stamp built bundles with dev_bundle vno. --- app/lib/bundler.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/lib/bundler.js b/app/lib/bundler.js index 83ce810ce7..8d8db37a4a 100644 --- a/app/lib/bundler.js +++ b/app/lib/bundler.js @@ -495,6 +495,11 @@ _.extend(Bundle.prototype, { else /* dev_bundle_mode === "skip" */; + fs.writeFileSync( + path.join(build_path, 'server', '.bundle_version.txt'), + fs.readFileSync( + path.join(files.get_dev_bundle(), '.bundle_version.txt'))); + // --- Static assets --- if (is_app) {