[英]How do I add a javascript file out of app.js in Lineman , in the beginning of the HTML?
I'm using Lineman and I have to include Modernizr.js before the body tag in my page. 我正在使用Lineman,并且必须在页面的body标签之前包含Modernizr.js。 The regular app.js should be in its default location, at the end of the body.
常规app.js应位于正文的末尾,位于其默认位置。 It happens that every javascript file I include in the project gets bundled inside app.js .
碰巧我在项目中包含的每个javascript文件都捆绑在app.js中。
I just fugure out how to deal with this problem. 我只是想出如何解决这个问题。 I just use the "static" folder under the Lineman project.
我只使用Lineman项目下的“静态”文件夹。 Every asset you put there gets untouched.
您放置在此处的所有资产都保持不变。 So I created a "js" folder and put my modernizr.js file ther.
因此,我创建了一个“ js”文件夹,然后将我的modernizr.js文件放在了该文件夹中。 In the web page, just need to reference it by "js/modernizr.js".
在网页中,只需通过“ js / modernizr.js”进行引用。
I'm just loving Lineman.js. 我只是喜欢Lineman.js。 Really cool!
真酷!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.