Skip to content

rhernandog/react-webpack-code-splitting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React, React Router V4, Webpack - Code Splitting

Simple example for creating code splitting using React Router V4

Description

Since the deprecation of System.import by Webpack v3.x, the switch has been made to use Dynamic Import. Using this Gist by Andrew Clark as inspiration I came up with this simple React app that uses React Router V4.x and Webpack 3.x to create the bundle files.

Live Sample

Installation

Clone this repo:

$ git clone https://github.com/rhernandog/react-webpack-code-splitting.git

Or download the ZIP file. Then install all the dependencies:

$ npm install

Finally run the server command to bundle the files and start the webpack dev server:

$ npm run server

Changelog

Version 1.0.0

  • Initial stable commit.

Author

Rodrigo Hernando

License

  • MIT

Issues

Contributing

Just create a PR.

About

Sample of React, React Router V4 and Webpack, using code splitting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published