gulpfile.js

This commit is contained in:
wy373226722
2017-03-30 15:51:52 +08:00
parent f0e3ca9410
commit 1be5c8c23b
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ const nodemon = require('gulp-nodemon')
const friendlyFormatter = require('eslint-friendly-formatter')
var jsScript = 'node'
if (process.env.npm_config_argv.indexOf('debug') > 0) {
if (process.env.npm_config_argv !== undefined && process.env.npm_config_argv.indexOf('debug') > 0) {
jsScript = 'node debug'
}