Mercurial > zeropaste
comparison config/initializers/assets.rb @ 486:5419f1c6a291
Readd node_modules assets load path
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 15 Jan 2022 02:09:35 +0900 |
parents | 6cac8fcf8164 |
children | 92929378413e |
comparison
equal
deleted
inserted
replaced
485:6cac8fcf8164 | 486:5419f1c6a291 |
---|---|
3 # Version of your assets, change this if you want to expire all your assets. | 3 # Version of your assets, change this if you want to expire all your assets. |
4 Rails.application.config.assets.version = "1.0" | 4 Rails.application.config.assets.version = "1.0" |
5 | 5 |
6 # Add additional assets to the asset load path. | 6 # Add additional assets to the asset load path. |
7 # Rails.application.config.assets.paths << Emoji.images_path | 7 # Rails.application.config.assets.paths << Emoji.images_path |
8 Rails.application.config.assets.paths << Rails.root.join("node_modules") | |
8 | 9 |
9 # Precompile additional assets. | 10 # Precompile additional assets. |
10 # application.js, application.css, and all non-JS/CSS in the app/assets | 11 # application.js, application.css, and all non-JS/CSS in the app/assets |
11 # folder are already added. | 12 # folder are already added. |
12 # Rails.application.config.assets.precompile += %w( admin.js admin.css ) | 13 # Rails.application.config.assets.precompile += %w( admin.js admin.css ) |