forked from jarrodek/ChromeRestClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-server.js
More file actions
28 lines (27 loc) · 710 Bytes
/
Copy pathdev-server.js
File metadata and controls
28 lines (27 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'use strict';
var gulp = require('gulp');
var connect = require('gulp-connect');
var path = require('path');
// var modRewrite = require('connect-modrewrite');
gulp.task('connect', function() {
connect.server({
root: [path.resolve(__dirname, '..')],
livereload: true,
port: 8888,
// middleware: function() {
// return [
// modRewrite([
// //'^/app/bower_components/(.*)$ /bower_components/$1 [L]',
// ])
// ];
// }
});
});
gulp.task('html', function() {
gulp.src('./app/*.html')
.pipe(connect.reload());
});
gulp.task('watch', function() {
gulp.watch(['./app/*.html'], ['html']);
});
gulp.task('elements-webserver', ['connect', 'watch']);