From a989bd5b5d467e7b1ffc5cc610048e70b9d3deba Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Sat, 19 Mar 2016 23:28:02 -0700 Subject: [PATCH] Include migrate.html with prod build --- src/migrate.html | 7 +++---- webpack.config.prod.js | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/migrate.html b/src/migrate.html index 42fca212..5fb06c22 100644 --- a/src/migrate.html +++ b/src/migrate.html @@ -22,10 +22,9 @@ var source = event.source; var data = event.message; - // Uncomment for production - // if (origin !== "http://coriolis.io") { - // return; - // } + if (window.location.href.indexOf('coriolis') != -1 && origin !== "http://coriolis.io") { + return; + } try { var builds = fromJsonToObject(localStorage.getItem('builds')); diff --git a/webpack.config.prod.js b/webpack.config.prod.js index 4bc00fe0..b3e70875 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -74,6 +74,7 @@ module.exports = { }), new CopyDirPlugin(path.join(__dirname, 'src/schemas'), 'schemas'), new CopyDirPlugin(path.join(__dirname, 'src/images/logo/*'), ''), + new CopyDirPlugin(path.join(__dirname, 'src/migrate.html'), ''), new AppCachePlugin({ network: ['*'], settings: ['prefer-online'],