fix: loading trix editor overwrite in production
This commit is contained in:
parent
a96f21134e
commit
1e63c59a8a
3 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
||||||
import "trix"
|
import "trix"
|
||||||
import "@rails/actiontext"
|
import "@rails/actiontext"
|
||||||
import "./trix-editor-overrides"
|
import "trix-editor-overrides"
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
pin "application", preload: true
|
pin "application", preload: true
|
||||||
pin "trix"
|
pin "trix"
|
||||||
pin "@rails/actiontext", to: "actiontext.js"
|
pin "@rails/actiontext", to: "actiontext.js"
|
||||||
|
pin "trix-editor-overrides"
|
|
@ -9,4 +9,4 @@ Rails.application.config.assets.version = '1.0'
|
||||||
# Precompile additional assets.
|
# Precompile additional assets.
|
||||||
# application.js, application.css, and all non-JS/CSS in the app/assets
|
# application.js, application.css, and all non-JS/CSS in the app/assets
|
||||||
# folder are already added.
|
# 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 a new issue