2020年9月2日

next-定义路由

摘要: 在next.config.js里写 const withCss = require('@zeit/next-css') if(typeof require !== 'undefined'){ require.extensions['.css']=file=>{} } module.exports = 阅读全文

posted @ 2020-09-02 17:09 秃了头也不退休 阅读(368) 评论(0) 推荐(0) 编辑

next-支持css样式和按需加载antd

摘要: yarn add @zeit/next-css 在blog根目录下,新建一个next.config.js文件。这个就是Next.js的总配置文件。写入下面的代码: const withCss = require('@zeit/next-css') if(typeof require !== 'und 阅读全文

posted @ 2020-09-02 11:28 秃了头也不退休 阅读(943) 评论(0) 推荐(0) 编辑

react-错误边界

摘要: 使用 阅读全文

posted @ 2020-09-02 10:54 秃了头也不退休 阅读(139) 评论(0) 推荐(0) 编辑

导航