PS C:\Users\andru\Рабочий стол\my-app> npm run build
> my-app@0.1.0 build
> react-scripts build && rm -rf '../web/dist' && mv build ../web/dist
Creating an optimized production build...
Compiled with warnings.
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"bootstrap": "^5.3.2",
"cra-template": "1.2.0",
"react": "^18.2.0",
"react-bootstrap": "^2.8.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.16.0",
"react-scripts": "5.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"web-vitals": "^3.4.0"
}
}
public function actionIndex()
{
Yii::$app->response->format = Response::FORMAT_HTML;
return $this->renderFile('@app/web/build/index.html');
// return $this->render('index');
}