File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ class Encore {
326
326
* Encore.addPlugin(new MyWebpackPlugin(), PluginPriorities.DefinePlugin);
327
327
* ```
328
328
*
329
- * @param {object } plugin
329
+ * @param {webpack.WebpackPluginInstance } plugin
330
330
* @param {number } priority
331
331
* @returns {Encore }
332
332
*/
@@ -339,7 +339,7 @@ class Encore {
339
339
/**
340
340
* Adds a custom loader config
341
341
*
342
- * @param {object } loader The loader config object
342
+ * @param {webpack.RuleSetRule } loader The loader config object
343
343
* @returns {Encore }
344
344
*/
345
345
addLoader ( loader ) {
@@ -351,7 +351,7 @@ class Encore {
351
351
/**
352
352
* Alias to addLoader
353
353
*
354
- * @param {object } rule
354
+ * @param {webpack.RuleSetRule } rule
355
355
* @returns {Encore }
356
356
*/
357
357
addRule ( rule ) {
@@ -414,7 +414,7 @@ class Encore {
414
414
* ]);
415
415
* ```
416
416
*
417
- * @param {* } externals
417
+ * @param {webpack.Externals } externals
418
418
* @returns {Encore }
419
419
*/
420
420
addExternals ( externals ) {
@@ -931,7 +931,7 @@ class Encore {
931
931
* ```
932
932
*
933
933
* Supported options:
934
- * - {Condition } exclude (default=/(node_modules|bower_components)/)
934
+ * - {webpack.RuleSetCondition } exclude (default=/(node_modules|bower_components)/)
935
935
* A Webpack Condition passed to the JS/JSX rule that
936
936
* determines which files and folders should not be
937
937
* processed by Babel (https://webpack.js.org/configuration/module/#condition).
Original file line number Diff line number Diff line change 13
13
* @import RuntimeConfig from './config/RuntimeConfig'
14
14
*/
15
15
16
+ /**
17
+ * @import webpack from 'webpack'
18
+ */
19
+
16
20
const path = require ( 'path' ) ;
17
21
const fs = require ( 'fs' ) ;
18
22
const crypto = require ( 'crypto' ) ;
@@ -356,6 +360,9 @@ class WebpackConfig {
356
360
Object . assign ( this . aliases , aliases ) ;
357
361
}
358
362
363
+ /**
364
+ * @param {webpack.Externals } externals
365
+ */
359
366
addExternals ( externals = [ ] ) {
360
367
if ( ! Array . isArray ( externals ) ) {
361
368
externals = [ externals ] ;
You can’t perform that action at this time.
0 commit comments