SystemJS,浏览器同步设置 [英] SystemJS, Browser Sync Setup
问题描述
我想跟随角2安装指南和时遇到的问题。我使用browsersync,我似乎无法弄清楚如何得到这个code工作。
I am trying to follow the angular 2 setup guide and am having issues. I am using browsersync and I cannot seem to figure out how to get this code to work.
<script>
.......
System.import('./app/boot')
.then(null, console.error.bind(console));
</script>
因为我服了使用一饮而尽构建过程应用程序中的应用程序找不到/app/boot.js。我不能访问任何目录与我吞掉服务构建过程,并且正在使用的浏览器同步。我该如何去使用SystemJS与浏览器同步组合,以便它可以找到我的boot.js文件?
The application cannot find /app/boot.js because I am serving up the application using a gulp build process. I cannot access any directories with my "gulp serve" build process, and browser sync is being used. How can I go about using SystemJS in combination with browser sync so that it can find my boot.js file?
很抱歉,如果这是一个简单的问题。我是新来这样的构建过程中,通常这将是简单的只包括文件。谢谢你。
Sorry if this is a easy question. I am new to this kind of build process and normally it would be straightforward to just include the file. Thanks.
推荐答案
那么你不张贴你从我们检测到什么错误是在你的code code。但与是一饮而尽browsersync是一个很好的结合,使我们的项目平稳运行。我想你不会导入引导文件正确这可能是错误。
Well you are not posting you code from where we detect the whats error is in your code. but yes gulp with browsersync is a very good combination to make our project run smoothly. i think you are not importing your bootstrap file properly that's may be the error.
还是我所用相同的项目设置为我的项目。我用大口的任务,在你可以参考我的存储库的帮助下angular2的browsersync。这种回购可以帮助你找出什么错误
still me to used same project setup for my project. i used gulp task with the browsersync in the angular2 you can refer to my repository for the help. this repo may help you to figure out whats the error
https://github.com/MrPardeep/Angular2-DatePicker
这篇关于SystemJS,浏览器同步设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!