Making WordPress.org

Changeset 3768


Ignore:
Timestamp:
08/03/2016 06:15:15 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Properly set NODE_ENV.

Removes the console warning about runing minified code in development.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/Gruntfile.js

    r3734 r3768  
    1313                plugins: webpackConfig.plugins.concat(
    1414                    new webpack.optimize.DedupePlugin(),
     15                    new webpack.DefinePlugin( {
     16                        'process.env.NODE_ENV': JSON.stringify( 'production' )
     17                    } ),
    1518                    new webpack.optimize.UglifyJsPlugin( {
    1619                        compress: { warnings: false }
Note: See TracChangeset for help on using the changeset viewer.