Create-React-App 中配置 Webpack 测试

通过 Yarn 命令可执行如下操作:

  • yarn start:启动应用程序开发模式。
  • yarn test:启动交互式测试运行器。
  • yarn build:构建应用程序到 build 文件夹,并优化构建以获得最佳性能。
  • yarn eject:注意,这是单向操作。执行此命令后无法返回。如果对构建工具和配置选择不满意,可随时执行此命令。此命令将从项目中删除单个生成依赖项,并添加所有配置文件和传递依赖项(Webpack)。
zip
configuring-webpack-main.zip 预估大小:18个文件
folder
configuring-webpack-main 文件夹
file
.gitignore 310B
file
package.json 823B
folder
src 文件夹
file
setupTests.js 241B
file
index.js 500B
file
logo.svg 3KB
file
App.js 528B
file
reportWebVitals.js 362B
file
App.css 564B
file
index.css 366B
file
App.test.js 246B
folder
public 文件夹
file
robots.txt 67B
file
logo192.png 5KB
file
index.html 2KB
file
favicon.ico 4KB
file
manifest.json 492B
file
logo512.png 9KB
file
README.md 3KB
file
yarn.lock 496KB
zip 文件大小:214.1KB