hexo-server-express
It's similar to "hexo-server" package, but it uses express instead of connect.
Guides
These are some useful guides.
How to install ?
Enter it in a command line:
npm i hexo-server-express --save
How to start it ?
Enter it in command line:
hexo server-express
How to start it from node.js codes ?
Enter this codes in the start of your app:
const Hexo = ;let hexo = process /*The base dir*/ /*Hexo options*/ ; hexo ;
and it should be start.
As you can see, everything is similar to hexo-server
, but I just changed the command name server
to server-express
.
How to use my app in a hexo server/server-express ?
Simply, make this server_middleware
like codes below:
// ...// After starting hexo from your node.js codes // Make your appconst express = ;let yourApp = ; // Register a server_middlewarehexoextendfilter;
Related Packages
- hexo-app-connect: It lets you use hexo as a route in your main express/connect app
for getting more info, visit