# gulp

# browserSync Error: listen EACCES

     mix.browserSync({
       proxy: 'review.qq.com',
       port: 3001,
       notify: false,
       watchTask: true,
       oprn: 'enternal',
       host: 'review.qq.com',
     })

这个错误说明端口被占用,只要更改下 port 就可以啦

# Did you forget to signal async completion?

原因是,task 回调函数没有被执行

gulp.task 'webpack', (cb) ->
  webpack webpackConfig, (err, stats) ->
    if err
      throw new gutil.PluginError 'webpack', err

    gutil.log '[webpack]', stats.toString { colors: true }
    # 这里执行回调
    cb()
Last Updated: 5/14/2022, 11:38:45 AM