Class: Coupdoeil::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/coupdoeil/engine.rb

Constant Summary collapse

PRECOMPILE_ASSETS =

If you don’t want to precompile Coupdoeil’s assets (eg. because you’re using webpack), you can do this in an intiailzer:

config.after_initialize do

config.assets.precompile -= Coupdoeil::Engine::PRECOMPILE_ASSETS

end

If you just want to remove specific css:

config.after_initialize do

config.assets.precompile -= %w[coupdoeil/popover-arrow.css]

end

%w[
  coupdoeil.js
  coupdoeil.min.js
  coupdoeil.min.js.map
  coupdoeil/popover.css
  coupdoeil/popover-arrow.css
  coupdoeil/popover-animation.css
]