marcpre / learning_npm_lite-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

learning_npm_lite-server

This server should ONLY be used for development.

##Install

npm install lite-server --save-dev

Add this to your script { section:

  "scripts": {    
    "dev": "lite-server"
  },```

3. 

Add a `bs-config.json` and add the following configuration:

{ "port": 8000, "files": ["./src/**/*.{html,htm,css,js}"], "server": { "baseDir": "./src" } }


[Github lite-server](https://github.com/johnpapa/lite-server)