Skip to content

Commit

Permalink
Remove asset precompile config initializer
Browse files Browse the repository at this point in the history
This is unnecessary as an asset gem. As shown in the docs for wysiwyg-rails, these files are required in manifest files that are part of a Rails applications' precompile config. There is no need to also precompile these files too which causes a very large amount of files being generated when running `rails assets:precompile` (an extra file for each due to GZ).
  • Loading branch information
javierjulio authored Jul 3, 2019
1 parent 83eafcc commit 585d00d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/wysiwyg-rails/engine.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
module WYSIWYG
module Rails
class Engine < ::Rails::Engine
initializer 'froala.assets.precompile', group: :all do |app|
app.config.assets.precompile += %W(
froala_editor.min.js
plugins/*.js
languages/*.js
froala_editor.min.css
froala_style.min.css
plugins/*.css
themes/*.css
)
end
end
end
end
end

0 comments on commit 585d00d

Please sign in to comment.