diff --git a/arduino-ide-extension/src/browser/theia/core/default-window-service.ts b/arduino-ide-extension/src/browser/theia/core/default-window-service.ts index c256e97a..2d318f5e 100644 --- a/arduino-ide-extension/src/browser/theia/core/default-window-service.ts +++ b/arduino-ide-extension/src/browser/theia/core/default-window-service.ts @@ -14,4 +14,8 @@ export class DefaultWindowService async isFirstWindow(): Promise { return true; } -} \ No newline at end of file + + close() { + console.log('close'); + } +} diff --git a/browser-app/package.json b/browser-app/package.json index 4f319bac..183f9d5a 100644 --- a/browser-app/package.json +++ b/browser-app/package.json @@ -25,6 +25,7 @@ "@theia/cli": "1.41.0" }, "scripts": { + "build:dev": "theia build --config webpack.config.js --mode development", "prepare": "theia build --mode development", "start": "theia start --plugins=local-dir:../plugins", "watch": "theia build --watch --mode development" diff --git a/browser-app/webpack.config.js b/browser-app/webpack.config.js index 38baa16f..4bf3b849 100644 --- a/browser-app/webpack.config.js +++ b/browser-app/webpack.config.js @@ -5,8 +5,8 @@ // @ts-check const config = require('./gen-webpack.config.js'); -config.resolve.fallback['http'] = false; -config.resolve.fallback['fs'] = false; +config[0].resolve.fallback['http'] = false; +config[0].resolve.fallback['fs'] = false; /** * Expose bundled modules on window.theia.moduleName namespace, e.g.