에 배치했을 때 번들링이 작동하지 않습니다. CSS 파일과 js 파일이 있습니다. 로컬 링크는 예상대로 머리에 표시되지만 하늘색에서는 링크가 전혀 렌더링되지 않습니다. 이유가 무엇입니까?하늘색 asp mvc 4
다양한 스레드를 살펴본 결과 대부분 파일 경로와 동일한 번들 이름을 지정하는 데 문제가 있다는 점을 지적했습니다. 둘 다 다릅니다. 다른 사람들은 <compilation debug="true" targetFramework="4.5" />
이 <compilation debug="false" targetFramework="4.5" />
이어야하고 다른 사람들은 Bundle.config에서 BundleTable.EnableOptimizations = true;
을 시도해야한다고 말했습니다. 비 누군가가 내 번들이
올바른 방향으로 날 가리하시기 바랍니다 수, 나를 위해 일한
bundles.Add(new StyleBundle("~/assets/styles").Include(
"~/assets/plugins/bootstrap/css/bootstrap.min.css",
"etc...",
"~/assets/css/theme.css"));
bundles.Add(new ScriptBundle("~/assets/scripts").Include(
"~/assets/js/filter.js",
"etc...",
"~/assets/js/ContactForm.js"));
내 폴더 구조 내 _Layout.cshtml에서
assets/css
assets/js
가
라고이다@Styles.Render("~/assets/styles")
@Scripts.Render("~/assets/scripts")