Skip to content

Commit

Permalink
Fixed production mode detection being triggered in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsz committed Aug 18, 2020
1 parent 631ffa9 commit 9a41974
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.2.2] - 2020-08-18
### Fixed
- fixed production mode detection being triggered in development mode

## [1.2.1] - 2020-07-13
### Added
- gulp-util to the dependencies
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let hasProductionArg = false;
for (let i = 0; i < process.argv.length; i++) {
const argValue = process.argv[i];
// If build task is 'build' or '...-build' then set production mode
if (argValue === 'build' || argValue.indexOf('-build') !== -1) {
if (argValue === 'build' || argValue.match(/^[a-z0-9-]+-build$/)) {
hasProductionArg = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@videinfra/static-website-builder",
"version": "1.2.1",
"version": "1.2.2",
"description": "Customizable static site project builder",
"license": "MIT",
"engines": {
Expand Down

0 comments on commit 9a41974

Please sign in to comment.