Skip to content

Commit

Permalink
Merge pull request #499 from jrafanie/exclude_files_with_no_extension…
Browse files Browse the repository at this point in the history
…_from_precompile

Exclude files with no extension from precompile
  • Loading branch information
Fryguy committed Sep 4, 2014
2 parents 255ad82 + 569d0d8 commit 226498a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmdb/lib/vmdb/productization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def prepare_asset_precompilation
Rails.application.config.assets.precompile = [
Proc.new do |path|
include =
!File.extname(path).in?(['.js', '.css']) ||
!File.extname(path).in?(['.js', '.css', '']) ||
path =~ /(?:\/|\\|\A)(application|productization)\.(css|js)$/

resolved = Rails.application.assets.resolve(path)
Expand Down

0 comments on commit 226498a

Please sign in to comment.