mirror of
https://github.com/gregberge/loadable-components.git
synced 2026-01-25 15:24:15 +00:00
docs: fix webpack api doc
This commit is contained in:
parent
4a6f84fe9f
commit
b6f4e838a8
@ -26,12 +26,12 @@ module.exports = {
|
||||
|
||||
Create a webpack loadable plugin.
|
||||
|
||||
| Arguments | Description |
|
||||
| --------------------- | ------------------------------------------------- |
|
||||
| `options` | Optional options |
|
||||
| `options.filename` | Stats filename (default to `loadable-stats.json`) |
|
||||
| `options.path` | Stats file path (default to webpack config `output.path`) |
|
||||
| `options.writeToDisk` | Always write assets to disk (default to `false`) |
|
||||
| Arguments | Description |
|
||||
| ------------------------------ | ----------------------------------------------------------------------------------- |
|
||||
| `options` | Optional options |
|
||||
| `options.filename` | Stats filename (default to `loadable-stats.json`) |
|
||||
| `options.writeToDisk` | Accepts `boolean` or `object`. Always write stats file to disk. Default to `false`. |
|
||||
| `options.writeToDisk.filename` | Write assets to disk at given `filename` location |
|
||||
|
||||
```js
|
||||
new LoadablePlugin({ filename: 'stats.json', writeToDisk: true })
|
||||
|
||||
@ -10,10 +10,12 @@ order: 30
|
||||
|
||||
Create a webpack loadable plugin.
|
||||
|
||||
| Arguments | Description |
|
||||
| ------------------------------ | ------------------------------------------------- |
|
||||
| `options` | Optional options |
|
||||
| `options.writeToDisk.filename` | Write assets to disk at given `filename` location |
|
||||
| Arguments | Description |
|
||||
| ------------------------------ | ----------------------------------------------------------------------------------- |
|
||||
| `options` | Optional options |
|
||||
| `options.filename` | Stats filename (default to `loadable-stats.json`) |
|
||||
| `options.writeToDisk` | Accepts `boolean` or `object`. Always write stats file to disk. Default to `false`. |
|
||||
| `options.writeToDisk.filename` | Write assets to disk at given `filename` location |
|
||||
|
||||
```js
|
||||
new LoadablePlugin({ filename: 'stats.json', writeToDisk: true })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user