@ts-liveserver/server
v2.0.0
Published
### NPX
Downloads
3
Readme
Start server
NPX
npx @ts-liveserver/server
Installed
npm install @ts-liveserver/server
ts-liveserver
Cli options
Serve from directory
npx @ts-liveserver/server ./aDirectory/to/serve/from
Watch
npx @ts-liveserver/server --watch
Source maps
npx @ts-liveserver/server --sourcemaps
Proxy
npx @ts-liveserver/server --proxy=https://www.site1.com/external-1/,https://www.another-site/external-2/
Note about internal NodeJS modules
If one of your dependencies are using internal NodeJS-module, you need to add a conterpart that works in browser that will be resolved by the server. Simply add some of the dependencies to your project in order for this to work:
{
"dependencies": {
"events": "^3.3.0",
"stream": "^0.0.2",
"buffer": "^6.0.3",
"util": "^0.12.3",
"browserify-zlib": "^0.2.0",
"assert": "^2.0.0"
}
}