We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在文件config/config.tx中设置 publicPath: process.env.NODE_ENV === 'production' ? './' : '/', 执行 npm run build 后, index.html文件中, 有一行代码是 <script async src="/scripts/loading.js"></script> , 在非根目录部署的情况下, 无法加载这个文件
config/config.tx
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
npm run build
index.html
<script async src="/scripts/loading.js"></script>
同bug描述, 直接build就是结果.
index.html中应该是 <script async src="./scripts/loading.js"></script>
<script async src="./scripts/loading.js"></script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 bug 描述
在文件
config/config.tx
中设置publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
执行
npm run build
后,index.html
文件中, 有一行代码是<script async src="/scripts/loading.js"></script>
, 在非根目录部署的情况下, 无法加载这个文件📷 复现步骤 | Recurrence steps
同bug描述, 直接build就是结果.
🏞 期望结果 | Expected results
index.html
中应该是<script async src="./scripts/loading.js"></script>
💻 复现代码 | Recurrence code
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: