Configure Sprockets to work with cssbundling-rails
This commit is contained in:
parent
e910630ef0
commit
219a4fbbbc
|
@ -10,3 +10,12 @@ Rails.application.config.assets.version = '1.0'
|
|||
# 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 )
|
||||
|
||||
# Enable Rails to resolve url() asset paths to digested assets
|
||||
Rails.application.config.assets.resolve_assets_in_css_urls = true
|
||||
|
||||
# Include node assets in asset loading
|
||||
# This is IMPORTANT because in either environment (especially local) external assets
|
||||
# will not be found/resolved otherwise
|
||||
Rails.application.config.assets.paths << Rails.root.join("node_modules/font-awesome/fonts")
|
||||
Rails.application.config.assets.paths << Rails.root.join("node_modules/@fontsource/lexend/files")
|
||||
|
|
Loading…
Reference in New Issue