Skip to content

Commit

Permalink
Mention subfolders in docs (#2875)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed May 27, 2019
1 parent 941e822 commit 00cfcb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/999-big-list-of-options.md
Expand Up @@ -46,15 +46,15 @@ CLI: `-i`/`--input <filename>`

The bundle's entry point(s) (e.g. your `main.js` or `app.js` or `index.js`). If you provide an array of entry points or an object mapping names to entry points, they will be bundled to separate output chunks. Unless the [`output.file`](guide/en#output-file) option is used, generated chunk names will follow the [`output.entryFileNames`](guide/en#output-entryfilenames) option. When using the object form, the `[name]` portion of the file name will be the name of the object property while for the array form, it will be the file name of the entry point.

This will generate at least two entry chunks with the names `entry-a.js` and `entry-b.js`:
Note that it is possible when using the object form to put entry points into different sub-folders by adding a `/` to the name. The following will generate at least two entry chunks with the names `entry-a.js` and `entry-b/index.js`, i.e. the file `index.js` is placed in the folder `entry-b`:

```js
// rollup.config.js
export default {
...,
input: {
a: 'src/main-a.js',
b: 'src/main-b.js'
'b/index': 'src/main-b.js'
},
output: {
...,
Expand Down

0 comments on commit 00cfcb7

Please sign in to comment.