react 官方支持的创建命令为npx create-react-app my-app --template typescript
官方脚手架集成了 webpack,但是相关配置并没有暴露出来,需要自己借助第三方工具配置。比如 craco 文档为https://www.npmjs.com/package/@craco/craco。但是通过第三方配置比较复杂,接下来我们用在webpack中创建react的形式搭建一个项目
welcome to wonderland
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true