@dimerapp/assets-middleware
v1.0.0
Published
Server assets detected via dimer image
Downloads
9
Readme
Dimer Image
Serve images detected via @dimerapp/image
This package can be used as a middleware to serve assets from the dist/__assets
directory
Installation
npm i @dimerapp/assets-midddleware
# yarn
yarn add @dimerapp/assets-midddleware
Usage
const assetsMiddleware = require('@dimerapp/assets-midddleware')
const httpServer = require('@dimerapp/http-server')
const { router } = httpServer()
const basePath = __dirname
route.use(assetsMiddleware(basePath))
Change log
The change log can be found in the CHANGELOG.md file.
Contributing
Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.
Authors & License
thetutlage and contributors.
MIT License, see the included MIT file.