New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-static-example-cordova

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-static-example-cordova

This example includes tweaks to use react-static to make a cordova application. It includes: - Babel - CSS imports - Image imports - File imports - Cordova - Cordova-friendly hot reloading

latest
npmnpm
Version
6.0.0-beta.29
Version published
Maintainers
1
Created
Source

React-Static - Cordova Example

This example includes tweaks to use react-static to make a cordova application. It includes:

  • Babel
  • CSS imports
  • Image imports
  • File imports
  • Cordova
  • Cordova-friendly hot reloading

The bulk of the setup for this example is in static.config.js. Check it out!

To get started:

  • Run react-static create and use the cordova template.
  • Install cordova globally:
$ yarn global add cordova
# or
$ npm install -g cordova
  • In your project, run cordova prepare
  • Then you can run yarn start

Important

The res directory is not included in the CLI example. If you need these files, you can find them at https://github.com/nozzle/react-static/tree/master/examples/cordova/res

Cordova itself does not use yarn to manage dependencies, and instead uses npm, regardless of what you use yourself. If you are using yarn and experience problems after running cordova prepare or any other cordova command that could modify node_modules, simply run yarn to recompile your dependencies correctly.

FAQs

Package last updated on 18 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts