Skip to content

Commit

Permalink
Scripts: Allow non-production env in wp-scripts build (#15480)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored May 7, 2019
1 parent 31e2144 commit 7f9d858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { sync: resolveBin } = require( 'resolve-bin' );
*/
const { getWebpackArgs } = require( '../utils' );

process.env.NODE_ENV = 'production';
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
const { status } = spawn(
resolveBin( 'webpack' ),
getWebpackArgs(),
Expand Down

0 comments on commit 7f9d858

Please sign in to comment.