Skip to content

Commit 38eb6a1

Browse files
authored
docs: update static example (#3242)
1 parent b212a2c commit 38eb6a1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/cli/watch-static/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CLI: Watch Content Base
1+
# CLI: Static
22

33
## Watching a single directory
44

@@ -29,6 +29,12 @@ module.exports = {
2929
npm run webpack-dev-server -- --open
3030
```
3131

32+
or via CLI only:
33+
34+
```console
35+
npm run webpack-dev-server -- --static assets --static css --open
36+
```
37+
3238
### What Should Happen
3339

3440
1. The script should open `http://localhost:8080/` in your default browser.

examples/cli/watch-static/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<link rel="stylesheet" href="styles.css" type="text/css" charset="utf-8">
55
</head>
66
<body>
7-
<h1>Watch content base</h1>
7+
<h1>Static</h1>
88
<div id="mytext"></div>
99
<script src="bundle.js" type="text/javascript" charset="utf-8"></script>
1010
</body>

0 commit comments

Comments
 (0)