mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
* get rid of gulp * use webpack-dev-server to serve app.js * express serves static files * 2 webpack configs: local and production * for development with backend, websocket URL is injected * remove unneeded static files
8 lines
201 B
JavaScript
8 lines
201 B
JavaScript
// This file is an entrypoint for development,
|
|
// see main.js for the real entrypoint
|
|
|
|
// Inject websocket url to dev backend
|
|
window.WS_URL = 'ws://' + location.hostname + ':4040';
|
|
|
|
require('./main');
|