Skip to content

Commit c1fbbf3

Browse files
David EllingsworthDavid Ellingsworth
authored andcommitted
Split the addExternals example into two separate examples.
1 parent c0a8d8d commit c1fbbf3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

index.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,15 +387,18 @@ class Encore {
387387
*
388388
* For example:
389389
*
390+
* Encore.addExternals({
391+
* jquery: 'jQuery',
392+
* react: 'react'
393+
* });
394+
*
395+
* Or:
396+
*
390397
* const nodeExternals = require('webpack-node-externals');
391398
*
392-
* Encore.addExternals([
393-
* {
394-
* jquery: 'jQuery',
395-
* react: 'react'
396-
* },
399+
* Encore.addExternals(
397400
* nodeExternals()
398-
* ]);
401+
* );
399402
*
400403
* @param {*} externals
401404
*

0 commit comments

Comments
 (0)