Skip to content

Commit

Permalink
Add the target configuration to the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Nov 17, 2021
1 parent 9eb74b7 commit 4310d14
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ module.exports = {
dist: './path/to/dist',
public: '/path/to/dist',

/**
* Define which target to use when creating the bundle.
* An array of targets will create a bundle for each target.
* Defaults to `legacy`.
*
* @type {'modern'|'legacy'|Array<'modern'|'legacy'>}
* @optional
*/
target: ['modern', 'legacy'],

/**
* Analyze the bundle with the WebpackBundleAnalyzer plugin.
* @type {Boolean}
Expand Down

0 comments on commit 4310d14

Please sign in to comment.