Здравствуйте, у меня есть приложение responsejs, и я создаю свой проект с помощью следующей команды
npm build
Вот мой package.json
файл:
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"},
после сборки у меня есть папка с файлами сборки и файл index.html, но все пути в этом .html абсолютны, я хочу построить с относительным путем
например (index.html): теперь у меня есть:
<script type="text/javascript" src="/static/js/main.af2bdfd5.js"></script> <link href="/static/css/main.097da2df.css" rel="stylesheet"> <link rel="shortcut icon" href="/favicon.ico">
я хочу этот:
<script type="text/javascript" src="./static/js/main.af2bdfd5.js"></script> <link href="./static/css/main.097da2df.css" rel="stylesheet"> <link rel="shortcut icon" href="./favicon.ico">