# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = "1.0"
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
Rails.application.config.assets.paths << Rails.root.join("node_modules/bootstrap-icons/font")
Rails.application.config.assets.paths << Rails.root.join("node_modules/@fortawesome/fontawesome-free/webfonts")
Rails.application.config.assets.paths << Rails.root.join("node_modules/summernote/dist/font")
Rails.application.config.assets.paths << Rails.root.join("app/assets/fonts")
# Rails.application.config.assets.precompile << /\.(?:svg|eot|woff|ttf)\z/
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
1条答案
按热度按时间li9yvcax1#
在看了一些教程之后,我发现了哪些链轮不能拆卸。
虽然我升级我删除了很多宝石,有人进口链轮作为一个依赖。
我修复了直接添加链轮的问题:
字符串
我还简化了
assets.rb
文件:型
从代码中搜索使用
.assets
的其他文件很重要。我的
manifest.js
文件(链轮查找该文件):型
参考资料:
https://www.youtube.com/watch?v=h8DmZhkRoJs
https://www.youtube.com/watch?v=DhM-Wh9Pmd4的