From 2405727d7d62fce31102520167cde42ee688c198 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 24 Sep 2017 11:23:27 -0400 Subject: Started working on UI This commit imports a lot of assets from veekun, as well as a font from http://www.victoryroad.net/showthread.php?t=1507 --- lib/pokeviewer/engine.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib') diff --git a/lib/pokeviewer/engine.rb b/lib/pokeviewer/engine.rb index 4368808..9733b43 100644 --- a/lib/pokeviewer/engine.rb +++ b/lib/pokeviewer/engine.rb @@ -1,8 +1,23 @@ require "enumerize" require "sequenced" +require "haml" +require "sass-rails" +require "normalize-rails" module Pokeviewer class Engine < ::Rails::Engine isolate_namespace Pokeviewer + + initializer "pokeviewer.assets" do |app| + app.config.assets.paths << Rails.root.join("app", "assets", "fonts") + end + + initializer "pokeviewer.assets" do |app| + app.config.assets.precompile += + %w(pokeviewer/icons/*.png + pokeviewer/sprites/**/*.png + pokeviewer/sprites/**/*.gif + pokeviewer/types/**.gif) + end end end -- cgit 1.4.1