This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "name": "PWA Starter Demo ", | |
| "short_name": "PWA Demo", | |
| "description": "PWA starter demo with features like sync, push etc", | |
| "start_url": "./index.html?ref=home", | |
| "display": "standalone", | |
| "orientation": "portrait", | |
| "background_color": "#000000", | |
| "theme_color": "#000000", | |
| "icons": [ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Cache Key (Update this name to update the cache) | |
| var cacheName = 'cache-v3'; | |
| /* | |
| * Files to be served from cache | |
| */ | |
| var files = [ | |
| './', | |
| './css/styles.css', | |
| './images/icon_16.png', | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { Observable } from 'rxjs/Observable'; | |
| const simpleObservable = new Observable(observer => { | |
| setTimeout(() => { | |
| observer.next(1); | |
| }, 2000); | |
| }); | |
| simpleObservable.subscribe(value => console.log(value)); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const simplePromise = new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| resolve(1); | |
| }, 2000); | |
| }); | |
| simplePromise.then(res => console.log(res)); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "name": "react-tutorials", | |
| "version": "1.0.0", | |
| "description": "React Samples", | |
| "main": "getting-started/index.js", | |
| "scripts": { | |
| "build": "webpack --progress --colors --display-error-details --debug --display-reasons", | |
| "build-watch": "webpack --progress --colors --display-error-details --debug --display-reasons --watch", | |
| "start": "node server.js" | |
| }, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const path = require('path'); | |
| const deployPath = path.resolve(__dirname, './dist'); | |
| const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
| const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | |
| const webpack = require('webpack'); | |
| module.exports = { | |
| entry: './getting-started/index.js', | |
| output: { | |
| path: deployPath, | 
NewerOlder