Builds

This section describes the development and builds process.

How to write code

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

Environment

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

npm install -D

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/development and dist/production directories.

You can build your modified source code with the following command. The built source code can be found in the dist/development/openplayer directory.

npm run watch

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