Convert to much simpler model

This commit is contained in:
Daniel Imms
2019-04-07 14:53:09 -04:00
parent 49f58f5d25
commit 26a80d0d35
10 changed files with 49 additions and 140 deletions
+3 -2
View File
@@ -88,8 +88,9 @@ function createTerminal(): void {
// Load addons
const typedTerm = term as TerminalType;
typedTerm.loadAddon(WebLinksAddon).init();
attachAddon = typedTerm.loadAddon(AttachAddon);
typedTerm.loadAddon(new WebLinksAddon());
attachAddon = new AttachAddon();
typedTerm.loadAddon(attachAddon);
window.term = term; // Expose `term` to window for debugging purposes
term.on('resize', (size: { cols: number, rows: number }) => {
+1
View File
@@ -31,6 +31,7 @@ const clientConfig = {
]
},
resolve: {
modules: [path.resolve(__dirname, '..'), 'node_modules'],
extensions: [ '.tsx', '.ts', '.js' ]
},
output: {