diff --git a/gulpfile.js b/gulpfile.js
index <HASH>..<HASH> 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -181,15 +181,6 @@ gulp.task("lint", () => {
         .pipe(jshint.reporter("default"));
 });
 
-gulp.task("webserver", () => {
-    gulp.src("publish/")
-        .pipe(webserver({
-            port: 8000,
-            livereload: true,
-            directoryListing: true
-        }));
-});
-
 gulp.task("clean-jsdoc", (done) => {
     return del([ "publish/jsdoc/" ], done);
 });
@@ -212,6 +203,15 @@ gulp.task("build-demo", [ "clean-demo", "copy-demo" ], () => {
     return bower({ cwd: 'publish/demo/' });
 });
 
+gulp.task("webserver", [ "build-demo", "jsdoc" ], () => {
+    gulp.src("publish/")
+        .pipe(webserver({
+            port: 8000,
+            livereload: true,
+            directoryListing: true
+        }));
+});
+
 gulp.task("deploy", [ "build-demo", "jsdoc" ], () => {
     return gulp.src('publish/**/*')
         .pipe(ghPages());
chore(gulp): kick "build-demo" and "jsdoc" task before starting "webserver" task