Skip to content

Commit

Permalink
Fix: Allow replace task to run specified as dev/prod (#3448)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Aug 14, 2023
1 parent bb81598 commit e3f8ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grunt/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ module.exports = function(grunt) {
process.exit();
}

const isDevelopmentBuild = process.argv.some(arg => (arg === 'dev' || arg.includes(':dev')));
const isDevelopmentBuild = process.argv.some(arg => (arg === 'dev' || arg.includes(':dev') || arg.includes('--dev')));

const data = {
type: isDevelopmentBuild ? 'development' : 'production',
Expand Down

0 comments on commit e3f8ad6

Please sign in to comment.