diff --git a/demo/server.js b/demo/server.js index 8955431b1a..f1fae572af 100644 --- a/demo/server.js +++ b/demo/server.js @@ -32,9 +32,8 @@ function startServer() { res.sendFile(__dirname + '/style.css'); }); - app.get('/dist/client-bundle.js', function(req, res){ - res.sendFile(__dirname + '/dist/client-bundle.js'); - }); + app.use('/dist', express.static(__dirname + '/dist')); + app.use('/src', express.static(__dirname + '/src')); app.post('/terminals', function (req, res) { const env = Object.assign({}, process.env); diff --git a/demo/tsconfig.json b/demo/tsconfig.json index 2bf76f670b..7a53302d73 100644 --- a/demo/tsconfig.json +++ b/demo/tsconfig.json @@ -9,7 +9,8 @@ "xterm-addon-attach": ["../addons/xterm-addon-attach"], "xterm-addon-fit": ["../addons/xterm-addon-fit"], "xterm-addon-search": ["../addons/xterm-addon-search"], - "xterm-addon-web-links": ["../addons/xterm-addon-web-links"] + "xterm-addon-web-links": ["../addons/xterm-addon-web-links"], + "xterm-addon-webgl": ["../addons/xterm-addon-webgl"] } }, "include": [