Dynamic imports
Example project to demonstrate the code-splitting feature provided by webpack and the dynamic imports behaviour.
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm start
# generate static project
$ npm run generate
For detailed explanation on how things work, checkout Nuxt.js docs.
You can read this article in VueDose and in this repo.
Demo site is here