0.1.2 • Published 4 years ago

umi-plugin-prefetch v0.1.2

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

umi-plugin-prefetch

Install

# or yarn
$ npm install
$ npm run build --watch
$ npm run start

Usage

Configure in .umirc.js,

export default {
  plugins: [['umi-plugin-prefetch']],
};

Use in page

// define webpackChunkName with prefetch/preload as below
import(
  'file'
  /* webpackChunkName: "name-prefetch" */
);

LICENSE

MIT

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago