Skip to content

Commit

Permalink
Explicitly precompile css and js
Browse files Browse the repository at this point in the history
  • Loading branch information
little9 committed Aug 1, 2019
1 parent 52d10d6 commit 5d81b30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/zizia/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ module Zizia
class Engine < ::Rails::Engine
isolate_namespace Zizia

initializer :zizia_assets_precompile do |app|
app.config.assets.precompile << %w[zizia/zizia.js zizia/zizia.css]
end

initializer :append_migrations do |app|
unless app.root.to_s.match root.to_s
config.paths['db/migrate'].expanded.each do |expanded_path|
Expand Down
1 change: 1 addition & 0 deletions zizia.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Gem::Specification.new do |gem|
gem.add_dependency 'rails', '~> 5.1.7'
gem.add_dependency 'carrierwave'
gem.add_dependency 'redcarpet'
gem.add_dependency 'sassc-rails'

gem.add_development_dependency 'yard'
gem.add_development_dependency 'bixby'
Expand Down

0 comments on commit 5d81b30

Please sign in to comment.