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