-
-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Version of your assets, change this if you want to expire all your assets. | ||
Rails.application.config.assets.version = '1.0' | ||
|
||
# Add additional assets to the asset load path | ||
# Rails.application.config.assets.paths << Emoji.images_path | ||
|
||
Rails.application.config.assets.paths << Rails.root.join('vendor', 'assets') | ||
Rails.application.config.assets.paths << Rails.root.join('dist') | ||
|
||
Rails.application.config.assets.precompile += %w( fonts/ionicons.eot fonts/ionicons.svg fonts/ionicons.ttf fonts/ionicons.woff ) | ||
|
||
# Precompile additional assets. | ||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. | ||
Rails.application.config.assets.precompile += %w( stylesheets/app.css javascripts/app.js ) | ||
|
||
# zip library | ||
Rails.application.config.assets.precompile += %w( zip/zip.js zip/z-worker.js zip/inflate.js zip/deflate.js ) | ||
|
||
# Recursively add all files and folders in 'dist'. | ||
Rails.application.config.assets.paths << Rails.root.join('dist') | ||
files = Dir.glob('dist/**/*').map! { |file| file.sub('dist/', '') } | ||
Rails.application.config.assets.precompile += files |