@@ -43,7 +43,7 @@ class Encore {
43
43
* to the directory where your package.json lives.
44
44
*
45
45
* @param {string } outputPath
46
- * @return {Encore }
46
+ * @returns {Encore }
47
47
*/
48
48
setOutputPath ( outputPath ) {
49
49
webpackConfig . setOutputPath ( outputPath ) ;
@@ -67,7 +67,7 @@ class Encore {
67
67
* .setManifestKeyPrefix('/build')
68
68
*
69
69
* @param {string } publicPath
70
- * @return {Encore }
70
+ * @returns {Encore }
71
71
*/
72
72
setPublicPath ( publicPath ) {
73
73
webpackConfig . setPublicPath ( publicPath ) ;
@@ -96,7 +96,7 @@ class Encore {
96
96
* }
97
97
*
98
98
* @param {string } manifestKeyPrefix
99
- * @return {Encore }
99
+ * @returns {Encore }
100
100
*/
101
101
setManifestKeyPrefix ( manifestKeyPrefix ) {
102
102
webpackConfig . setManifestKeyPrefix ( manifestKeyPrefix ) ;
@@ -294,7 +294,7 @@ class Encore {
294
294
*
295
295
* @param {string } plugin
296
296
* @param {number } priority
297
- * @return { exports }
297
+ * @returns { Encore }
298
298
*/
299
299
addPlugin ( plugin , priority = 0 ) {
300
300
webpackConfig . addPlugin ( plugin , priority ) ;
@@ -411,7 +411,7 @@ class Encore {
411
411
*
412
412
* @param {string } name The chunk name (e.g. vendor to create a vendor.js)
413
413
* @param {Array } files Array of files to put in the vendor entry
414
- * @return { exports }
414
+ * @returns { Encore }
415
415
*/
416
416
createSharedEntry ( name , files ) {
417
417
webpackConfig . createSharedEntry ( name , files ) ;
@@ -437,7 +437,7 @@ class Encore {
437
437
* expect jQuery (or something else) to be a global variable.
438
438
*
439
439
* @param {Array } variables
440
- * @return { exports }
440
+ * @returns { Encore }
441
441
*/
442
442
autoProvideVariables ( variables ) {
443
443
webpackConfig . autoProvideVariables ( variables ) ;
@@ -453,7 +453,7 @@ class Encore {
453
453
* jQuery: 'jquery'
454
454
* });
455
455
*
456
- * @return { exports }
456
+ * @returns { Encore }
457
457
*/
458
458
autoProvidejQuery ( ) {
459
459
webpackConfig . autoProvidejQuery ( ) ;
@@ -478,7 +478,7 @@ class Encore {
478
478
* })
479
479
*
480
480
* @param {function } postCssLoaderOptionsCallback
481
- * @return { exports }
481
+ * @returns { Encore }
482
482
*/
483
483
enablePostCssLoader ( postCssLoaderOptionsCallback = ( ) => { } ) {
484
484
webpackConfig . enablePostCssLoader ( postCssLoaderOptionsCallback ) ;
@@ -512,7 +512,7 @@ class Encore {
512
512
*
513
513
* @param {function } sassLoaderOptionsCallback
514
514
* @param {object } encoreOptions
515
- * @return { exports }
515
+ * @returns { Encore }
516
516
*/
517
517
enableSassLoader ( sassLoaderOptionsCallback = ( ) => { } , encoreOptions = { } ) {
518
518
webpackConfig . enableSassLoader ( sassLoaderOptionsCallback , encoreOptions ) ;
@@ -534,7 +534,7 @@ class Encore {
534
534
* });
535
535
*
536
536
* @param {function } lessLoaderOptionsCallback
537
- * @return { exports }
537
+ * @returns { Encore }
538
538
*/
539
539
enableLessLoader ( lessLoaderOptionsCallback = ( ) => { } ) {
540
540
webpackConfig . enableLessLoader ( lessLoaderOptionsCallback ) ;
@@ -555,7 +555,7 @@ class Encore {
555
555
* });
556
556
*
557
557
* @param {function } stylusLoaderOptionsCallback
558
- * @return { exports }
558
+ * @returns { Encore }
559
559
*/
560
560
enableStylusLoader ( stylusLoaderOptionsCallback = ( ) => { } ) {
561
561
webpackConfig . enableStylusLoader ( stylusLoaderOptionsCallback ) ;
@@ -573,7 +573,7 @@ class Encore {
573
573
* });
574
574
*
575
575
* @param {function } callback
576
- * @return { exports }
576
+ * @returns { Encore }
577
577
*/
578
578
configureBabel ( callback ) {
579
579
webpackConfig . configureBabel ( callback ) ;
@@ -627,7 +627,7 @@ class Encore {
627
627
* });
628
628
*
629
629
* @param {function } callback
630
- * @return { exports }
630
+ * @returns { Encore }
631
631
*/
632
632
enableTypeScriptLoader ( callback = ( ) => { } ) {
633
633
webpackConfig . enableTypeScriptLoader ( callback ) ;
@@ -648,7 +648,7 @@ class Encore {
648
648
* });
649
649
*
650
650
* @param {function } callback
651
- * @return { exports }
651
+ * @returns { Encore }
652
652
*/
653
653
enableCoffeeScriptLoader ( callback = ( ) => { } ) {
654
654
webpackConfig . enableCoffeeScriptLoader ( callback ) ;
@@ -663,7 +663,7 @@ class Encore {
663
663
* This is a build optimization API to reduce build times.
664
664
*
665
665
* @param {function } forkedTypeScriptTypesCheckOptionsCallback
666
- * @return { exports }
666
+ * @returns { Encore }
667
667
*/
668
668
enableForkedTypeScriptTypesChecking ( forkedTypeScriptTypesCheckOptionsCallback = ( ) => { } ) {
669
669
webpackConfig . enableForkedTypeScriptTypesChecking (
@@ -884,7 +884,7 @@ class Encore {
884
884
885
885
// Proxy the API in order to prevent calls to most of its methods
886
886
// if the webpackConfig object hasn't been initialized yet.
887
- const EncoreProxy = new Proxy ( Encore , {
887
+ const EncoreProxy = new Proxy ( new Encore ( ) , {
888
888
get : ( target , prop ) => {
889
889
if ( prop === '__esModule' ) {
890
890
// When using Babel to preprocess a webpack.config.babel.js file
0 commit comments