fix nodemon ignores client directory
fix nodemon acknowledges json
This commit is contained in:
@ -39,7 +39,8 @@ var paths = {
|
|||||||
serverIgnore: [
|
serverIgnore: [
|
||||||
'gulpfile.js',
|
'gulpfile.js',
|
||||||
'public/',
|
'public/',
|
||||||
'node_modules/'
|
'node_modules/',
|
||||||
|
'client/'
|
||||||
],
|
],
|
||||||
publicJs: './public/js',
|
publicJs: './public/js',
|
||||||
|
|
||||||
@ -125,7 +126,7 @@ gulp.task('serve', function(cb) {
|
|||||||
var called = false;
|
var called = false;
|
||||||
nodemon({
|
nodemon({
|
||||||
script: paths.server,
|
script: paths.server,
|
||||||
ext: '.js',
|
ext: '.js .json',
|
||||||
ignore: paths.serverIgnore,
|
ignore: paths.serverIgnore,
|
||||||
exec: './node_modules/.bin/babel-node',
|
exec: './node_modules/.bin/babel-node',
|
||||||
env: {
|
env: {
|
||||||
|
Reference in New Issue
Block a user