Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError mime.lookup is not a function when use 'diet-static' as a footer middleware #81

Open
tablecell opened this issue Sep 25, 2020 · 0 comments

Comments

@tablecell
Copy link

tablecell commented Sep 25, 2020

var app = server();
app.listen(3000);

var static = require('diet-static')({ path: app.path+'/static/' }) 

console.log( app.path+'/static/' );


// Attach the static module as a footer middleware
app.footer(static)
   

neither http://localhost:3000/jquery.js or http://localhost:3000/static/jquery.js
echo msg TypeError mime.lookup is not a function

@tablecell tablecell changed the title TypeError mime.lookup is not a function when TypeError mime.lookup is not a function when use 'diet-static' as a footer middleware Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant