Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在一个应用程序中,我需要使用一个 CSS 文件作为前端,然后使用一个 CSS 框架进行管理,但是如何组织应用程序来使用它呢?
我的做法:
application.css
/* * = require layout * = require scrollbar * = require head * = require nav */
sudo.css
/* * = require admin * = require admin_process */
不要忘记将其包含在config/application.rb:
config/application.rb
config.assets.precompile += %w(application.css sudo.css)