Skip to content

Replace deprecated light-server with lite-server for onnxruntime-web #359

@JesusColinV

Description

@JesusColinV

The current instructions for running onnxruntime-web use the command npx light-server -s . -p 8080, but this depends on the light-server package, which is deprecated and unmaintained. See https://github.com/txchen/light-server?tab=readme-ov-file

A possible solution is to use lite-server instead, which is a lightweight and customized version of BrowserSync that also offers a static server and live reload. See https://www.npmjs.com/package/lite-server

The steps to use lite-server are:

Install it as a dev dependency with npm install lite-server --save-dev or yarn add lite-server --dev
Run it with npx lite-server
It will open the default browser on the page of the static server created

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions