- gulp-connect:建立服务器
const gulp=require('gulp');
const connect=require('gulp-connect');
gulp.task('server',()=>{
connect.server({
livereload:true,
port:7788
})
});
gulp.task('default',['server']);
const gulp=require('gulp');
const connect=require('gulp-connect');
gulp.task('server',()=>{
connect.server({
livereload:true,
port:7788
})
});
gulp.task('default',['server']);