Serve
Installation
npm i -g serve
Usage
serve <dir> [option]
Options:
-C,--cors(setsAccess-Control-Allow-Origin: *)-p <number>(port)-s,--single(404 redirects toindex.html)-u--no-compression
More at Usage (github.com).
npm i -g serve
serve <dir> [option]
Options:
-C, --cors (sets Access-Control-Allow-Origin: *)-p <number> (port)-s, --single (404 redirects to index.html)-u --no-compressionMore at Usage (github.com).