Make WordPress Core

Changeset 56461 for trunk


Ignore:
Timestamp:
08/24/2023 08:40:24 PM (11 months ago)
Author:
westonruter
Message:

Build Tools: Avoid doing copy:dynamic when running grunt watch when using --dev option.

This prevents erroneously copying a file from source onto itself in source.

Props westonruter, jorbin.
Fixes #59196.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r56383 r56461  
    17991799            grunt.config( [ 'clean', 'dynamic', 'src' ], src );
    18001800        } else {
    1801             // Otherwise copy over only the changed file.
    1802             grunt.config( [ 'copy', 'dynamic', 'src' ], src );
     1801            if ( ! grunt.option( 'dev' ) ) {
     1802                // Otherwise copy over only the changed file.
     1803                grunt.config(['copy', 'dynamic', 'src'], src);
     1804            }
    18031805
    18041806            // For javascript also minify and validate the changed file.
Note: See TracChangeset for help on using the changeset viewer.