mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
web - scaffold a basic dev setup via "yarn web"
This commit is contained in:
12
scripts/code-web.js
Normal file
12
scripts/code-web.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
const httpServer = require('http-server');
|
||||
const opn = require('opn');
|
||||
|
||||
httpServer.createServer({ root: '.', cache: 5 }).listen(8080);
|
||||
console.log('LISTENING on 8080');
|
||||
|
||||
opn('http://127.0.0.1:8080/out/vs/code/browser/workbench/workbench.html');
|
||||
Reference in New Issue
Block a user