malchata / code-splitting-example

A toy app demonstrating how to do code splitting in Webpack.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code Splitting Example

This is an example sample app that shows how to perform code splitting in Webpack and Parcel. To install, simply git clone and run npm install. From there, you can go with any number of commands:

  • To do a dev build, run npm run dev.
  • To generate an optimized production build, run npm run build.
  • To perform a production build and run the app on a local server, run npm start, and the app will be available at http://localhost:8080/

There are several branches, each of which demonstrate a different kind of code splitting or performance optimization for apps using code splitting:

Hope you find this example useful!

About

A toy app demonstrating how to do code splitting in Webpack.

License:MIT License


Languages

Language:JavaScript 92.7%Language:HTML 7.3%