文章目录

豆浆的博客

半吊子咖啡师

存档: 2018 年 01 月 (1)

gulp配置文件

'use strict'; var gulp = require('gulp'); var less = require('gulp-less'); var browserSync = require('browser-sync'); var nodemon = require('gulp-nodemon'); var config = require('./config'); // we'd need a slight delay to reload browsers // connected to browser-sync after restarting nodemon var BROWSER_SYNC_RELOAD_DELAY = 500; gulp.task('nodemon', function (cb) { var called = false; return nodemon({ // nodemon our expressjs server script: 'app.js', // watch core server file(s) that require serve....