mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Update the JS tooling
* 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
This commit is contained in:
7
client/app/scripts/local.js
Normal file
7
client/app/scripts/local.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// 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');
|
||||
Reference in New Issue
Block a user