Skip to content

Commit a402984

Browse files
MrOrzcaasi
authored andcommitted
Point /* to index.html so that accessing http://localhost:3000/g0v-hackath13n during development does not get 404 Not Found.
1 parent 04503eb commit a402984

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gulpfile.ls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ gulp.task 'js', ->
3232
gulp.task 'server', ->
3333
app.use connect-livereload!
3434
app.use express.static path.resolve "#{build_path}"
35+
app.get '/*', (req, res) -> res.sendFile path.resolve("#{build_path}/index.html")
3536
app.listen 3000
3637
gulp-util.log 'listening on port 3000'
3738

0 commit comments

Comments
 (0)