Skip to content
Demonstration of dynamic imports with webpack and Vue (using Nuxt)
JavaScript Vue CSS
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.
.vscode
assets
components
layouts
middleware
pages
plugins
static
store
.babelrc
.editorconfig
.eslintrc.js
.gitignore
.prettierrc
README.md
dynamic-imports.md
npm-shrinkwrap.json
nuxt.config.js
package.json
postcss.config.js
tailwind.js

README.md

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

You can’t perform that action at this time.