A quick example of code splitting on route using Backbone.js and Webpack 3
While I use yarn
as a package manager in this project, this could be done with any node-based Webpack build system.
- Install node (recommended through nvm).
- If you installed via nvm, run
nvm use
- Install dependencies with
npm install
oryarn install
- Run
npm run dev
to start a development server on http://localhost:8080 - Profit 💸!