connect-static-file
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "connect-static-file", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "connect and express middleware to serve a single static file", | ||
@@ -5,0 +5,0 @@ "main": "lib/connect-static-file.js", |
@@ -14,3 +14,3 @@ connect-static-file | ||
var options = {}; | ||
app.use('/foo.txt', staticFile(path), options); | ||
app.use('/foo.txt', staticFile(path, options)); | ||
``` | ||
@@ -54,3 +54,3 @@ | ||
```javascript | ||
app.use('/bundle.js', staticFile('generated/bundle.js.gz'), {encoded: 'gzip'}); | ||
app.use('/bundle.js', staticFile('generated/bundle.js.gz', {encoded: 'gzip'})); | ||
// If the file is missing, or if the browser does not support gzip, use this one instead: | ||
@@ -57,0 +57,0 @@ app.use('/bundle.js', staticFile('generated/bundle.js')); |