fix: loading trix editor overwrite in production
This commit is contained in:
parent
a96f21134e
commit
1e63c59a8a
|
@ -1,4 +1,4 @@
|
|||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
||||
import "trix"
|
||||
import "@rails/actiontext"
|
||||
import "./trix-editor-overrides"
|
||||
import "trix-editor-overrides"
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
pin "application", preload: true
|
||||
pin "trix"
|
||||
pin "@rails/actiontext", to: "actiontext.js"
|
||||
pin "trix-editor-overrides"
|
|
@ -9,4 +9,4 @@ Rails.application.config.assets.version = '1.0'
|
|||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in the app/assets
|
||||
# folder are already added.
|
||||
Rails.application.config.assets.precompile += %w[application_legacy.js jquery.min.js]
|
||||
Rails.application.config.assets.precompile += %w[application_legacy.js jquery.min.js trix-editor-overrides.js]
|
||||
|
|
Loading…
Reference in New Issue