coc-live-server 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,6 +18,7 @@ Launch a development local Server with live reload feature for static & dynamic
18
18
  - `coc-live-server.wait`: Wait time in milliseconds before reloading the page after a file change is detected, default: `100`
19
19
  - `coc-live-server.spa`: translate requests from /abc to /#/abc (handy for Single Page Apps), default: `false`
20
20
  - `coc-live-server.open`: Open the browser automatically when the server starts, default: `true`
21
+ - `coc-live-server.log`: Enable logging for the live server
21
22
 
22
23
  ## Commands
23
24
 
package/lib/index.js CHANGED
@@ -59,6 +59,7 @@ function startLiveServer() {
59
59
  const wait = getConfigItem("wait", 100);
60
60
  const spa = getConfigItem("spa");
61
61
  const open = getConfigItem("open", true);
62
+ const log = getConfigItem("log", true);
62
63
  const STATUS = `liveServer[:${port}]`;
63
64
  const args = [];
64
65
  if (liveServerProcess) {
@@ -79,6 +80,9 @@ function startLiveServer() {
79
80
  if (spa) {
80
81
  args.push(" --spa");
81
82
  }
83
+ if (!log) {
84
+ args.push(" --quiet");
85
+ }
82
86
  if (!open) {
83
87
  args.push(" --no-browser");
84
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-live-server",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Launch a development local Server with live reload feature for static & dynamic pages.",
5
5
  "author": "cyl <a1008611abcd@126.com>",
6
6
  "license": "MIT",
@@ -65,6 +65,11 @@
65
65
  "type": "boolean",
66
66
  "default": true,
67
67
  "description": "Open the browser automatically when the server starts"
68
+ },
69
+ "coc-live-server.log": {
70
+ "type": "boolean",
71
+ "default": true,
72
+ "description": "Enable logging for the live server"
68
73
  }
69
74
  }
70
75
  },