From 82a37f0e7a9cfda0ed2b63163e03c01674748ecf Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 6 Jun 2016 20:46:08 +0300 Subject: [PATCH] Added production build docs Also move html style to the index.html Closes #1127 --- README.md | 4 ++++ app/index.html | 6 ++++++ app/less/app.less | 1 - app/webogram.appcache | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca6c5a8a..5647511c 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,10 @@ To run this application in Firefox as a packaged app, open "Menu" -> "Developer" Run `gulp watch` to watch for file changes and automatically rebuild the app. +#### Running in production + +Run `gulp clean`, then `gulp publish` to build the minimized production version of the app. Copy `dist` folder contents to your web server. Don't forget to set `X-Frame-Options SAMEORIGIN` header ([docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options)). + ### Third party libraries diff --git a/app/index.html b/app/index.html index 428768c0..5f76cf23 100644 --- a/app/index.html +++ b/app/index.html @@ -15,6 +15,12 @@ + + diff --git a/app/less/app.less b/app/less/app.less index 5c1e2bae..d434005e 100644 --- a/app/less/app.less +++ b/app/less/app.less @@ -3,7 +3,6 @@ /* app common css */ html { - display: none; background: #e7ebf0; overflow: visible; } diff --git a/app/webogram.appcache b/app/webogram.appcache index 9a0a5e8a..039e98f3 100644 --- a/app/webogram.appcache +++ b/app/webogram.appcache @@ -1,6 +1,6 @@ CACHE MANIFEST -# 64 +# 65 NETWORK: *