Make WordPress Core

Changeset 56782


Ignore:
Timestamp:
10/04/2023 07:48:07 PM (12 months ago)
Author:
audrasjb
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.
Merges [56461] to the 6.3 branch.
Fixes #59196.

Location:
branches/6.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.3

  • branches/6.3/Gruntfile.js

    r56247 r56782  
    18411841            grunt.config( [ 'clean', 'dynamic', 'src' ], src );
    18421842        } else {
    1843             // Otherwise copy over only the changed file.
    1844             grunt.config( [ 'copy', 'dynamic', 'src' ], src );
     1843            if ( ! grunt.option( 'dev' ) ) {
     1844                // Otherwise copy over only the changed file.
     1845                grunt.config(['copy', 'dynamic', 'src'], src);
     1846            }
    18451847
    18461848            // For javascript also minify and validate the changed file.
Note: See TracChangeset for help on using the changeset viewer.