Skip to content

Commit

Permalink
Merge pull request #2405 from Tyriar/sourcemaps
Browse files Browse the repository at this point in the history
Expose source maps on demo server
  • Loading branch information
Tyriar committed Sep 9, 2019
2 parents fdfa871 + 1f12d36 commit 238d81d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions demo/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 238d81d

Please sign in to comment.