Skip to content
A toy app demonstrating how to do code splitting in Webpack.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.editorconfig
.gitignore
LICENSE-MIT
README.md
package-lock.json
package.json
pedals.json
server.js
webpack.config.js

README.md

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!

You can’t perform that action at this time.