OvenPlayer
OME HomeGitHubAbout Us
v0.10.x
v0.10.x
  • Introduction
  • Initialization
  • Error Handling
  • Builds
  • UI Customize
  • API Reference
    • API
    • Event
  • Examples
    • Playlist
    • Captions
    • Ads
    • Run-on WebServer
Powered by GitBook
On this page
  • How to write code
  • Environment
  • Production Build
  • Development Build

Was this helpful?

Builds

This section describes the development and builds process.

PreviousError HandlingNextUI Customize

Last updated 3 years ago

Was this helpful?

How to write code

OvenPlayer uses and when building. If you are using npm for the first time, please refer to . In addition, you need to configure the environment to keep this up-to-date and working.

Environment

If npm works well on your system, run the following command in Terminal to install the packages needed to develop OvenPlayer, such as webpack.

$ npm ci

Production Build

If you want to modify the source code, you need to write it manually.

If you are cloning a project for the first time, you can find already built files in the dist/ directories.

However, you can build your modified source code with the following command. The built source code can be found in the dist/ directory.

npm run build

This command allows you to build the webpack automatically whenever the source code is modified.

Development Build

It is inefficient to build code every time during development and testing. If you use the watch function, webpack detects changes in the source code and automatically builds it quickly. The development built source code can be found in the dev/ directory.

npm run watch
npm
webpack
Install Node.js, npm