/dynamic-imports-example

Demonstration of dynamic imports with webpack and Vue (using Nuxt)

Primary LanguageJavaScript

dynamic-imports

Dynamic imports

Example project to demonstrate the code-splitting feature provided by webpack and the dynamic imports behaviour.

Build Setup

# 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.

Article ✏

You can read this article in VueDose and in this repo.

Demo

Demo site is here