1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/config/initializers/assets.rb

40 lines
1.2 KiB
Ruby
Raw Normal View History

2020-03-13 17:10:38 +01:00
# frozen_string_literal: true
2015-05-05 03:10:25 +02:00
# 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'
2020-03-13 17:10:38 +01:00
# allow use rails helpers in angular templates
Rails.application.config.assets.configure do |env|
env.context_class.class_eval do
include ActionView::Helpers
include Rails.application.routes.url_helpers
end
end
# Add additional assets to the asset load path.
2015-05-05 03:10:25 +02:00
# Rails.application.config.assets.paths << Emoji.images_path
2020-03-13 17:10:38 +01:00
# Add Yarn node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join('node_modules')
2015-05-05 03:10:25 +02:00
# Precompile additional assets.
2020-03-13 17:10:38 +01:00
# 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 )
2015-05-05 03:10:25 +02:00
Rails.application.config.assets.precompile += %w[
fontawesome-webfont.eot
fontawesome-webfont.woff
fontawesome-webfont.svg
fontawesome-webfont.ttf
]
Rails.application.config.assets.precompile += %w[app.printer.css]
2016-03-23 18:39:41 +01:00
Rails.application.config.assets.precompile += %w[
angular-i18n/angular-locale_*.js
moment/locale/*.js
summernote/lang/*.js
fullcalendar/dist/lang/*.js
]