简体   繁体   中英

How does rails 4 know which manifest file to use?

There used to be a single manifest.yml file. Now we have multiple manifest-*.json files. How does rails know which one to use?

According to the Sprockets source, it just picks the first one. See line 50 here: https://github.com/sstephenson/sprockets/blob/master/lib/sprockets/manifest.rb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM