From 3cb7fe6704e94570abad142f925ff8c4fac958aa Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Sat, 23 Feb 2019 16:38:01 +0100 Subject: [PATCH] refactor: replace yargs with native Array.includes --- docs/assets/img/gulpfile.js | 3 +-- package.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/assets/img/gulpfile.js b/docs/assets/img/gulpfile.js index 00870f7d5..d90190856 100755 --- a/docs/assets/img/gulpfile.js +++ b/docs/assets/img/gulpfile.js @@ -1,12 +1,11 @@ var $ = require('gulp-load-plugins')(); -var argv = require('yargs').argv; var gulp = require('gulp'); var rimraf = require('rimraf'); var panini = require('panini'); var sequence = require('run-sequence'); // Check for --production flag -var isProduction = !!(argv.production); +var isProduction = process.argv.includes('--production'); // File paths to various assets are defined here. var paths = { diff --git a/package.json b/package.json index efe202804..38c9b635d 100644 --- a/package.json +++ b/package.json @@ -104,8 +104,7 @@ "vinyl-named": "^1.1.0", "webpack": "^4.28.4", "webpack-stream": "^5.2.1", - "what-input": ">=4.1.0", - "yargs": "^12.0.5" + "what-input": ">=4.1.0" }, "resolutions": { "puppeteer": "^1.11.0" -- 2.47.2