Skip to content

Commit 03a344b

Browse files
authored
docs: update examples to reflect --open-target (#3146)
1 parent ac813ec commit 03a344b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

examples/cli/open-page-multiple/README.md renamed to examples/cli/open-target-multiple/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# CLI: Open Page Option (Multiple)
22

33
```console
4-
npm run webpack-dev-server -- --open-page example1.html --open-page example2.html
4+
npm run webpack-dev-server -- --open-target example1.html --open-target example2.html
55
```
66

77
Some applications may consist of multiple pages. During development it may
88
be useful to directly open multiple pages at the same time. The pages to open
9-
may be specified as the argument to the `open-page` option.
9+
may be specified as the argument to the `open-target` option.
1010

1111
## What Should Happen
1212

examples/cli/open-page-multiple/webpack.config.js renamed to examples/cli/open-target-multiple/webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = [
1616
new HtmlWebpackPlugin({
1717
filename: 'example1.html',
1818
template: '../../.assets/layout.html',
19-
title: 'Open Page (Multiple) / Example / Page 1',
19+
title: 'Open Target (Multiple) / Example / Page 1',
2020
}),
2121
],
2222
}),
@@ -30,7 +30,7 @@ module.exports = [
3030
new HtmlWebpackPlugin({
3131
filename: 'example2.html',
3232
template: '../../.assets/layout.html',
33-
title: 'Open Page (Multiple) / Example / Page 2',
33+
title: 'Open Target (Multiple) / Example / Page 2',
3434
}),
3535
],
3636
},

examples/cli/open-page/README.md renamed to examples/cli/open-target/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# CLI: Open Page Option
22

33
```console
4-
npm run webpack-dev-server -- --open-page example.html#page1
4+
npm run webpack-dev-server -- --open-target example.html#page1
55
```
66

77
Some applications may consist of multiple pages. During development it may
88
be useful to directly open a particular page. The page to open may be specified
9-
as the argument to the `open-page` option.
9+
as the argument to the `open-target` option.
1010

1111
## What Should Happen
1212

File renamed without changes.

examples/cli/open-page/webpack.config.js renamed to examples/cli/open-target/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = setup({
1212
new HtmlWebpackPlugin({
1313
filename: 'example.html',
1414
template: '../../.assets/layout.html',
15-
title: 'Open Page / Example',
15+
title: 'Open Target / Example',
1616
}),
1717
],
1818
});

0 commit comments

Comments
 (0)