Next.js v9 - FQ
2020-3-3
| 2023-5-5
字数 928阅读时长 3 分钟
beizhu
type
Post
status
Published
date
Mar 3, 2020
slug
summary
Next.js - 一些问题,常见的问题,配置
tags
Next.js
category
技术
icon
password

Next.js - FQ

How to use cssModules

How to listen for routing changes?

The router of next provide some APIs that are used to listen for routing changes for us. For example: beforeHistoryChange, routeChangeComplete...

The solution of ant-design in the development environment style load is incomplete.

The solution of min-css-extract-plugin warning in the console

// next.config.js

How to polyfill IE10/IE9 in this scaffold?

Add polyfills.js in your project.

How to alias folder path?

Config the next.config.js

Downgrade your Next version to '7.0.2'

The ant-design style flash when page refresh!

How to speed up packing in production?

1. tenser-webpack-plugin -> cache

2. Add thread-loader

How to optimize bundle size?

Optimize moment local.

Optimize antd icon dist.

  • Next.js
  • CKedior两张方法上传图片及简单的plugins编写golang 一维数组变二维数组,根据字段排序随机
    Loading...