How to comment on a resource in an asset pipeline manifest

I needed to comment on one of the files included in the application manifest file of the application.js file, the way in which to add or include the file in the manifest, through comments in the manifest file. for example, to load bootstrap means that the file bootstrap.css or bootstrap.js is included in the css or javascript application resources, respectively. Below is an example file

/*
 * 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 generally better to create a new file per style scope.
 *
 *= require main
 *= require mobile
 *= require_self
 */
  console.log("This javascript is also added");

I want to comment on main.css without deleting it, Search the Internet, but did not find any useful information. With the pipeline just introduced in grails 2.4, adopted from rubies on rails, I think it would be useful to be able to comment on the css or javascript resource in the pipeline manifest file.

+4
1

CSS CSS. // /* ... */. , , , , . , , .

, main:

/*
 * 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 generally better to create a new file per style scope.
 *
 * NOTICE: the line below does NOT begin with an equals sign, and will be treated as a comment.
 * require main
 *= require mobile
 *= require_self
 */
  console.log("This javascript is also added");
+7

All Articles