Skip to:
Content

bbPress.org

Changeset 5912


Ignore:
Timestamp:
08/15/2015 06:30:56 AM (6 years ago)
Author:
netweb
Message:

Tools: Remove banners added to minified CSS files and simplified JS banner

This changeset removes the banners that were previously added to minified CSS files as grunt-contrib-cssmin deprecated this in v0.11.0.

The banner added to minified JS files has also been simplified by removing the time/date so that unnecessarily merges/updates do not trigger unneeded changes when using version control. The banner added to minified JS files is now static without the date/time, this fixes an issue where the minified file would always change because of the compiled date/time even when there were no code changes, this was causing unneeded changes when merging/updating when using version control external to bbPress.

Props netweb. Fixes #2738

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r5911 r5912  
    116116                expand: true,
    117117                ext: '.min.css',
    118                 src: BBP_LTR_CSS,
    119                 options: {
    120                     banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
    121                     '<%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %> - ' +
    122                     'https://wordpress.org/plugins/bbpress/ */'
    123                 }
     118                src: BBP_LTR_CSS
    124119            },
    125120            rtl: {
     
    128123                expand: true,
    129124                ext: '.min.css',
    130                 src: BBP_RTL_CSS,
    131                 options: {
    132                     banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
    133                     '<%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %> - ' +
    134                     'https://wordpress.org/plugins/bbpress/ */'
    135                 }
     125                src: BBP_RTL_CSS
    136126            }
    137127        },
     
    285275            },
    286276            options: {
    287                 banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
    288                 '<%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %> - ' +
    289                 'https://wordpress.org/plugins/bbpress/ */\n'
     277                banner: '/*! This file is automatically generated. */\n'
    290278            }
    291279        },
Note: See TracChangeset for help on using the changeset viewer.