Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.

Repository files navigation

React and React Native for Webpack Boilerplate

This is my take on setting up webpack with hot reloading and dll support for faster compile times using webpack and a single config file.

iOS and Android

Use the default React Native Packager for iOS and Android:

Script Description
react-native run-ios Runs the iOS app
react-native run-android Runs the Android app
yarn android Builds your app for android
yarn ios Builds your app for iOS

Web

react-native-web does not use the React Native Packager, so you need to use webpack to compile your app. This example app contains a complete webpack configuration that is optimized for development and production.

Script Description
yarn web Starts the development server on port 3000.
yarn web:test Builds your app for the test environment.
yarn web:prod Builds your app for the prod environment.

TODO

Use haul for react native when it gets ready, so that we get eslint and stuff for react-native also.

About

React and React Native for Webpack Boilerplate

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages