songtianlun
d795de6aa1
- Add cssbundling-rails and jsbundling-rails gems for improved asset management. - Create a Procfile for development with separate processes for CSS and JS. - Remove unused jQuery and Bootstrap assets from the application. - Update .gitignore to exclude build artifacts and node_modules. These changes streamline the asset pipeline, allowing for better organization and performance in handling CSS and JS files. The removal of unused assets reduces clutter and potential conflicts in the asset management process.
11 lines
636 B
Ruby
11 lines
636 B
Ruby
# 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/dist/js")
|
|
Rails.application.config.assets.paths << Rails.root.join("node_modules/bootstrap-icons/font")
|
|
Rails.application.config.assets.paths << Rails.root.join("node_modules/bootstrap/dist/js")
|
|
Rails.application.config.assets.precompile << "bootstrap.min.js" |