local-file-server
Easy to use, using the command line Nodejs simple static file server
We can use this tool when we need to start a static resource server locally
Global installation
npm install -g local-file-server
Copy the code
Run in the current directory
localserver start
Copy the code
The default boot port is 3000, or you can specify a port
localserver start -p 3001
Copy the code
localserver start -p 3001
Copy the code