File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ function gutenberg_register_packages_scripts( $scripts ) {
236
236
// When in production, use the plugin's version as the default asset version;
237
237
// else (for development or test) default to use the current time.
238
238
$ default_version = defined ( 'GUTENBERG_VERSION ' ) && ! ( defined ( 'SCRIPT_DEBUG ' ) && SCRIPT_DEBUG ) ? GUTENBERG_VERSION : time ();
239
- $ suffix = ( defined ( ' SCRIPT_DEBUG ' ) && SCRIPT_DEBUG ) ? ' .js ' : '.min.js ' ;
239
+ $ suffix = '.min.js ' ;
240
240
241
241
foreach ( glob ( gutenberg_dir_path () . "build/*/index $ suffix " ) as $ path ) {
242
242
// Prefix `wp-` to package directory to get script handle.
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ module.exports = {
319
319
] )
320
320
) ,
321
321
new DependencyExtractionWebpackPlugin ( { injectPolyfill : true } ) ,
322
- new ReadableJsAssetsWebpackPlugin ( ) ,
322
+ mode === 'production' && new ReadableJsAssetsWebpackPlugin ( ) ,
323
323
] . filter ( Boolean ) ,
324
324
watchOptions : {
325
325
ignored : [ '**/node_modules' , '**/packages/*/src' ] ,
You can’t perform that action at this time.
0 commit comments