Skip to content

Commit

Permalink
docs: update examples to reflect --open-target (#3146)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 authored Apr 3, 2021
1 parent ac813ec commit 03a344b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# CLI: Open Page Option (Multiple)

```console
npm run webpack-dev-server -- --open-page example1.html --open-page example2.html
npm run webpack-dev-server -- --open-target example1.html --open-target example2.html
```

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

## What Should Happen

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = [
new HtmlWebpackPlugin({
filename: 'example1.html',
template: '../../.assets/layout.html',
title: 'Open Page (Multiple) / Example / Page 1',
title: 'Open Target (Multiple) / Example / Page 1',
}),
],
}),
Expand All @@ -30,7 +30,7 @@ module.exports = [
new HtmlWebpackPlugin({
filename: 'example2.html',
template: '../../.assets/layout.html',
title: 'Open Page (Multiple) / Example / Page 2',
title: 'Open Target (Multiple) / Example / Page 2',
}),
],
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# CLI: Open Page Option

```console
npm run webpack-dev-server -- --open-page example.html#page1
npm run webpack-dev-server -- --open-target example.html#page1
```

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

## What Should Happen

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = setup({
new HtmlWebpackPlugin({
filename: 'example.html',
template: '../../.assets/layout.html',
title: 'Open Page / Example',
title: 'Open Target / Example',
}),
],
});

0 comments on commit 03a344b

Please sign in to comment.