HTML e-mails for UserMailer (#6256)
- premailer gem to turn CSS into inline styles automatically - rework UserMailer templates - reword UserMailer templates
This commit is contained in:
parent
7861c5f108
commit
5276c0a090
104 changed files with 848 additions and 706 deletions
|
@ -8,6 +8,6 @@ Rails.application.config.assets.version = '1.0'
|
|||
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
# Rails.application.config.assets.precompile += %w(application_public.js custom.css)
|
||||
# Rails.application.config.assets.precompile += %w()
|
||||
|
||||
Rails.application.config.assets.initialize_on_precompile = true
|
||||
|
|
6
config/initializers/premailer_rails.rb
Normal file
6
config/initializers/premailer_rails.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
require_relative '../../lib/mastodon/premailer_webpack_strategy'
|
||||
|
||||
Premailer::Rails.config.merge!(remove_ids: true,
|
||||
adapter: :nokogiri,
|
||||
generate_text_part: false,
|
||||
strategies: [PremailerWebpackStrategy])
|
Loading…
Add table
Add a link
Reference in a new issue