Browse Source

Added production build docs

Also move html style to the index.html
Closes #1127
master
Igor Zhukov 8 years ago
parent
commit
82a37f0e7a
  1. 4
      README.md
  2. 6
      app/index.html
  3. 1
      app/less/app.less
  4. 2
      app/webogram.appcache

4
README.md

@ -85,6 +85,10 @@ To run this application in Firefox as a packaged app, open "Menu" -> "Developer" @@ -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

6
app/index.html

@ -15,6 +15,12 @@ @@ -15,6 +15,12 @@
<link rel="stylesheet" href="css/app.css"/>
<!-- endbuild -->
<style>
html {
display: none;
}
</style>
<!-- <link rel="stylesheet" href="css/font.css"/> -->
<!-- <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600&amp;subset=cyrillic,cyrillic-ext,latin,latin-ext" rel="stylesheet" type="text/css"> -->

1
app/less/app.less

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
/* app common css */
html {
display: none;
background: #e7ebf0;
overflow: visible;
}

2
app/webogram.appcache

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
CACHE MANIFEST
# 64
# 65
NETWORK:
*

Loading…
Cancel
Save