Next.js 初体验

#Next.js 初体验 安装 Next.js $ yarn add next react react-dom $ yarn run dev //运行查看是否成功 ##配置 typescript && less $ yarn add @zeit/next-typescript @zeit/next-less typescript less ###创建 next.config.js // next.config.js const withTypescript = require('@zeit/next-typescript') const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin') module.exports = withTypescript({ webpack(config, options) { // Do not run type checking twice: