angular - 生产模式下的角度奇怪行为
问题描述
当我在生产模式下构建我的项目时ng build --prod --output-path=../Angular --base-href=/autopoint/ --deploy-url=/autopoint/Angular/
,在标签出现之前的 html 顶部有一条奇怪的线,但是当我使用 ng serve 运行它时,它就消失了。任何想法这可能是由什么引起的?
_Layout.cshtml
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AutoPoint</title>
<base href="/" />
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,800&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
@Styles.Render("~/Angular/Styles")
</head>
<body id="app">
@RenderBody()
@Scripts.RenderFormat("<script src='{0}' type='module'></script>", "~/Angular/Scripts")
@Scripts.RenderFormat("<script src='{0}' nomodule defer></script>", "~/Angular/ScriptsIE")
</body>
</html>
索引.cshtml
<app-root></app-root>
解决方案
推荐阅读
- linux - 反应项目设置 - npm 运行 webpack 问题
- r - 将一个数据框中的列合并到新的数据框中,并过滤
- java - 接口方法覆盖
- apache - 在不切换 DocumentRoot 的情况下为主页使用不同的目录
- android - 我在proguard规则中做错了什么?
- kubernetes - 如何查看当前使用的 kubelet 配置?
- php - 使用 jquery 按钮插入后更新其他表,PHP 7
- java - 从 Broadleaf 框架社区连接到 MySQL
- c++ - c ++ usleep在linux上立即返回
- javascript - 如何设置 for 循环中的索引但又未定义?