From 6d6ff7d191060fc6f9a9daff639b54ce16e435aa Mon Sep 17 00:00:00 2001 From: Pine Wu Date: Wed, 25 Apr 2018 11:25:10 -0700 Subject: [PATCH] Distinguish between watch and compile --- webview-sample/README.md | 2 +- webview-sample/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webview-sample/README.md b/webview-sample/README.md index ff242b4a..a9221c0e 100644 --- a/webview-sample/README.md +++ b/webview-sample/README.md @@ -15,7 +15,7 @@ Demonstrates VS Code's [webview API](https://code.visualstudio.com/docs/extensio - Open this example in VS Code 1.23+ - `npm install` -- `npm run compile` +- `npm run watch` or `npm run compile` - `F5` to start debugging Run the `Cat Coding: Start cat coding session` to create the webview. diff --git a/webview-sample/package.json b/webview-sample/package.json index 197e2eeb..ca4fc733 100644 --- a/webview-sample/package.json +++ b/webview-sample/package.json @@ -30,7 +30,8 @@ }, "scripts": { "vscode:prepublish": "tsc -p ./", - "compile": "tsc -watch -p ./", + "compile": "tsc -p ./", + "watch": "tsc -w -p ./", "postinstall": "node ./node_modules/vscode/bin/install" }, "dependencies": {