意外的标记'<'当使用grunt将.js脚本文件编译为index.html时

时间:2015-11-18 20:31:16

标签: javascript html deployment gruntjs

我目前正在使用 grunt 将应用程序脚本文件注入index.html,我已将其配置如下:

<!-- injector:js -->
 <script type="text/javascript" src="template/js/SmoothScroll.js"></script>
 <script type="text/javascript" src="template/js/bootstrap.js"></script>
 <script type="text/javascript" src="template/js/bootstrap.min.js"></script>
 <script type="text/javascript" src="template/js/jquery.1.11.1.js"></script>
 <script type="text/javascript" src="template/js/jquery.isotope.js"></script>
 <script type="text/javascript" src="template/js/landio.min.js"></script>
 <script type="text/javascript" src="template/js/main.js"></script>
 <script type="text/javascript" src="template/js/modernizr.custom.js"></script>
 <script type="text/javascript" src="template/js/owl.carousel.js"></script>
 <script type="text/javascript" src="scripts/components/sidebar/classie.js"></script>
 <script type="text/javascript" src="scripts/components/sidebar/modernizr.custom.js"></script>
 <script type="text/javascript" src="scripts/components/sidebar/sidebarEffects.js"></script>
 <script type="text/javascript" src="scripts/components/modal/modalEffects.js"></script>
 <script type="text/javascript" src="scripts/components/input/inputFiller.js"></script>
 <script type="text/javascript" src="scripts/socket.js"></script>
 <!-- endinjector -->

生成以下HTML:

My App.config looks as below:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="v11.0" />
      </parameters>
    </defaultConnectionFactory>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>
</configuration>

该应用程序最终在localhost上完美运行。但是,在AWS上部署时,我在控制台中看到以下内容:

Two forward slashes in a url/src/href attribute

之前有没有人遇到过这个问题?

0 个答案:

没有答案