Skip to content

Latest commit

 

History

History
95 lines (65 loc) · 1.86 KB

DOC_PLAT_WEB.md

File metadata and controls

95 lines (65 loc) · 1.86 KB
id title sidebar_label
web
Web Platform
Web

Overview

  • Supports Chrome, Safari, Firefox, IE10+

File Extension Support

Extension Type Priority
browser.js form factor 1
web.js platform 2
js fallback 3
tsx fallback 4
ts fallback 5

Requirements

  • no extra requirements required

Project Configuration

Feature Version
Webpack 3.11.0
react-native-web 0.9.1
Babel Core 7.1.2

Run

rnv run -p web

RNV will run local server and attempt to open browser URL: http://0.0.0.0:8080/

If you only want to run server:

rnv start -p web

Build

rnv build -p web

your deployable web app folder will be located in ./platformBuilds/<APP_ID>_web/public

Advanced

Clean and Re-build platform project

rnv run -p web -r

Run with verbose logging:

rnv run -p web --info

Run app on custom port 9999:

rnv run -p web --port 9999

Modifying index.html

In order for you to do that you'll need to run the project first, so it generates the files you need first. Then you can copy platformBuilds/_shared/template.js to platformConfig/builds/_shared/template.js and modify it. If platformConfig or other folders do not exist manually create them.

App Config

see: Web based config