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
| 'use strict'; | |
| const express = require('express'); | |
| const server = require('http').createServer(); | |
| const WebSocketServer = require('ws').Server; | |
| const app = express(); | |
| const wss = new WebSocketServer({ server: server }) | |
| app.use(express.static('public')); |
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
| { | |
| "error": true | |
| } |
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 webpack from 'webpack'; | |
| import { resolve } from 'path'; | |
| import HtmlPlugin from 'html-webpack-plugin'; | |
| import StatefulReactContainerPlugin from 'stateful-react-container-webpack-plugin'; | |
| function devProd (inDevelopment, inProduction) { | |
| return process.env.NODE_ENV === 'production' ? inProduction : inDevelopment; | |
| } |