File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,18 @@ module.exports = (on, config) => {
22
22
config . env . BUILD_ENV = 'production' ;
23
23
24
24
if ( process . env . NODE_ENV === 'test' ) {
25
+ const webpackConfig = require ( '../../configs/webpack.config' ) ;
26
+ console . log ( '=== CYPRESS WEBPACK CONFIG DEBUG ===' ) ;
27
+ console . log ( 'Number of plugins:' , webpackConfig . plugins ? webpackConfig . plugins . length : 0 ) ;
28
+ console . log ( 'Has plugins:' , ! ! webpackConfig . plugins ) ;
29
+ if ( webpackConfig . plugins ) {
30
+ webpackConfig . plugins . forEach ( ( plugin , i ) => {
31
+ console . log ( `Plugin ${ i } :` , plugin . constructor . name ) ;
32
+ } ) ;
33
+ }
34
+
25
35
const webpackOptions = {
26
- webpackOptions : require ( '../../configs/webpack.config' ) ,
36
+ webpackOptions : webpackConfig ,
27
37
watchOptions : { } ,
28
38
} ;
29
39
on ( 'file:preprocessor' , webpack ( webpackOptions ) ) ;
You can’t perform that action at this time.
0 commit comments