Reputation: 2663
For some reason any time I use a sass glob pattern (e.g. @import "recommends/**/*";
) and then go to compile my assets for production (it works in development) it's not working (is throwing a File to import not found or unreadable
error`).
Any thoughts as to that for which I had not accounted?
Gemfile:
source "https://rubygems.org"
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
gem "rails"
gem "puma"
gem "dotenv-rails"
gem "newrelic_rpm"
gem "simple_form"
gem "timeliness"
gem "validates_timeliness"
gem "responders"
gem "better_errors"
gem "parsley-rails"
gem "jquery-rails"
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
source "[...]" do
gem "apophenia-rails-logger"
gem "dr_theme", "~> 5"
gem "lead"
gem "ramsey_validators"
end
group :development, :test, :build do
gem "sass-rails", "~> 5.0"
gem "autoprefixer-rails"
gem "sprockets-es6"
end
group :development, :test do
# Call "byebug" anywhere in the code to stop execution and get a debugger console
gem "byebug", platform: :mri
gem "rspec-rails"
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem "web-console", ">= 3.3.0"
gem "listen", "~> 3.0.5"
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem "spring"
gem "spring-watcher-listen", "~> 2.0.0"
gem "spring-commands-rspec"
gem "fuubar"
gem "vcr"
gem "webmock", require: false
gem "capybara"
gem "poltergeist"
gem "i18n-debug", require: false # turn this on to log out I18n localization lookups
end
group :production do
gem "uglifier"
end
Upvotes: 0
Views: 277
Reputation: 289
Define
gem "sass-rails"
outside development block and then run
bundle install
and also try to run server locally with production environment by
rails s -e production
Hope this will resolve your issue. Happy Coding :)
Upvotes: 1