Make WordPress Core

Ticket #49460: 49460.diff

File 49460.diff, 776 bytes (added by isabel_brison, 5 years ago)
  • Gruntfile.js

    diff --git a/Gruntfile.js b/Gruntfile.js
    index 0ed08c39b8..54710ef4a1 100644
    a b module.exports = function(grunt) { 
    2626                        'wp-content/plugins/index.php',
    2727                        'wp-content/plugins/hello.php',
    2828                        'wp-content/plugins/akismet/**',
    29                         '!wp-content/themes/twenty*/node_modules/**'
     29                        '!wp-content/themes/twenty*/node_modules/**',
     30                        '!wp-config.php',
    3031                ],
    3132                changedFiles = {
    3233                        php: []
    module.exports = function(grunt) { 
    9798                        plugins: [BUILD_DIR + 'wp-content/plugins'],
    9899                        themes: [BUILD_DIR + 'wp-content/themes'],
    99100                        files: buildFiles.map( function( file ) {
     101                                if ( file.charAt( 0 ) === '!' ) {
     102                                        return '!' + BUILD_DIR + file.substring(1);
     103                                }
    100104                                return BUILD_DIR + file;
    101105                        }),
    102106                        css: [