Skip to content

Commit f35841a

Browse files
committed
Correcting example for externals
1 parent 3c578a9 commit f35841a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,14 @@ class Encore {
397397
* const nodeExternals = require('webpack-node-externals');
398398
*
399399
* Encore.addExternals(
400-
* // add any valid externals you have
400+
* nodeExternals()
401+
* );
402+
*
403+
* // or add multiple things at once
404+
* Encore.addExternals([
401405
* nodeExternals(),
402406
* /^(jquery|\$)$/i
403-
* );
407+
* ]);
404408
*
405409
* @param {*} externals
406410
*

0 commit comments

Comments
 (0)