gulp


gulp server not running on any port


Hey guys i am new to angularJs so i am learning. i have used xampp before on port 8080 and now when i set up a gulp server it says that it started successfully but nothing appeared on browser. tried to change port but didnt work. what did i do wrong? here is my gulpfile.js
var gulp = require('gulp'),
connect = require('gulp-connect'),
historyApiFallback = require('connect-history-api-fallback');
//Development Web Server
gulp.task('server', function(){
connect.server({
root: './app',
hostname: 'localhost',
port: 2020,
liverload: true,
middleware: function(connect, opt){
return [ historyApiFallback ];
}
});
});
var stylus = require('gulp-stylus'),
nib = require('nib');
//Preprocess Stylus files to CSS and reload changes
gulp.task('css', function(){
gulp.src('./app/stylesheets/main.styl')
.pipe(stylus({use: nib()}))
.pipe(gulp.dest('./app/stylesheets'))
.pipe(connect.reload());
});
//Reload the browser on HTML changes
gulp.task('html', function(){
gulp.src('./app/**/*.html')
.pipe(connect.reload());
});
//watch code changes and to run related tasks
gulp.task('watch' , function(){
gulp.watch(['./app/**/*.html'],['html']);
gulp.watch(['./app/stylesheets/**/*.styl'],['css']);
});
gulp.task('default', ['server', 'watch']);

Related Links

Gulp watch not working with imported files but works with main file
Gulp watch for css doesn't work
Using gulp for compiling of changed files only
How to run gulp task in visual studio code?
BrowserSync with custom URL
Multi-tenancy and Semantic UI
Display total number of errors with Gulp Jshint
Gulp watch entire folder & compile saved file
elixir.queueTask is undefined
gulp : browserify then concat files
parse error on vinyl source stream on gulp browserify babelify project
Bitters error (“Undefined variable: $font-stack-system”)
Gulp Babel Issue Using Foundation
Can gulp-rev inside individual tasks merge into one manifest?
Angular2 “Getting Started” deployment with SystemJS
Error: Requiring external module babel-register

Categories

HOME
drupal
excel-formula
ssms
teradata
typo3
packet
formatting
crm
spss
itext7
artifactory
sugarcrm
aggregation-framework
pip
ephesoft
select2
ldap-query
point-of-sale
mbed
alert
hapijs
summernote
minimagick
monad-transformers
xna
ejb-3.1
fibonacci
wai-aria
devexpress-mvc
pumping-lemma
akavache
smart-device
workflow-foundation
multiple-inheritance
sqldependency
jms-topic
mobile-development
vtd-xml
ios-autolayout
blockly
visual-prolog
circle
openvms
console.readline
jibx
queryover
mybatis-generator
definition
binary-decision-diagram
django-cors-headers
spring-ide
geminabox
jcifs
opticalflow
lightspeed
stringbuilder
gevent
syslog4j
hoare-logic
falcon
objectify
hfp
mrunit
hana-sql-script
instabug
notice
syncano
clearquest
tinymce-plugins
teamstudio-unplugged
mind-manager
parsefloat
triplestore
amzi-prolog
episerver-7
dateadd
image-preloader
mysql-error-1146
raddatepicker
ojb
kademlia
pudb
pymel
correctness
esi
dancer
clgeocoder
virtual-printer
flexbuilder
lwp
noise-reduction
javah
viewdata
large-data-volumes
calendarextender
manuals
scala-designer
cstring
vista64
cross-cutting-concerns

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App