Skip to content

Commit a51b35f

Browse files
David EllingsworthDavid Ellingsworth
David Ellingsworth
authored and
David Ellingsworth
committed
Update documentation for Encore.addExternals
1 parent 3d6fb55 commit a51b35f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

index.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,15 @@ class Encore {
387387
*
388388
* For example:
389389
*
390-
* Encore.addExternals({
391-
* jquery: 'jQuery',
392-
* react: 'react'
393-
* })
390+
* const nodeExternals = require('webpack-node-externals');
391+
*
392+
* Encore.addExternals([
393+
* {
394+
* jquery: 'jQuery',
395+
* react: 'react'
396+
* },
397+
* nodeExternals()
398+
* ]);
394399
*
395400
* @param {object} externals
396401
*

0 commit comments

Comments
 (0)