Include migrate.html with prod build

This commit is contained in:
Colin McLeod
2016-03-19 23:28:02 -07:00
parent 1bedbb1909
commit a989bd5b5d
2 changed files with 4 additions and 4 deletions

View File

@@ -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'));

View File

@@ -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'],