4
我需要评论application.js资产管道清单文件中包含的文件之一。向清单添加或包含文件的方式是通过评论清单文件。例如需要引导意味着bootstrap.css或bootstrap.js文件分别包含在应用程序的css或javascript资源中。该文件的一个例子是波纹管如何注销资产管道清单中的资源
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS file within this directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require main
*= require mobile
*= require_self
*/
console.log("This javascript is also added");
我想注释掉的main.css,不删除它,在网上搜索,但没有发现任何有用的信息,只需引入Grails的2.4资产管道从红宝石通过了rails,我认为能够在资产管道清单文件中注释掉css或javascript资源会很有用。
你想注释掉需要主? – 2014-09-27 13:09:12
是请或其他任何文件 – JohnTheBeloved 2014-09-27 13:48:16
在您的示例中,只需从想要发表评论的行中删除等号。例如'* = require main'变成'* require main' – 2014-09-27 13:58:18