0.2.2 • Published 2 years ago

@dylan/static v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Static

Middleware for Dylan which serves static assets.

Install

npm install @dylan/static

Usage

const dylan = require('dylan');
const static = require('@dylan/static');
const app = dylan();

app.use(static('path/to/assets/dir', {
  cacheControl: 'max-age=31536000, public, immutable'
}));
0.2.1

2 years ago

0.2.2

2 years ago

0.2.0

3 years ago

0.1.4

3 years ago