今既に製品版としてアプリケーションをリリースしており、
デザインに多少の変更を加えようと、
application.scssファイルにほんの少しの変更を加えると、途端に全く意味不明なデザイン崩れが起こります・・・。
変更といっても、コメントアウトの文字を1文字消す
application.scss before //ローカルの写真をアップさせない ↓ after //ローカルの写真をアップさせな
とか、新しくコメントアウトを入れるのに
//
と、たったのこれだけの変更でも突如読み込まれないcssが発生して、崩れてしまいます。
application.scssの冒頭には以下の内容を記載しています。
@import "users.scss"; @import "events.scss"; @import "supporters.scss"; @import "bootstrap"; @import "informations.scss"; @import "summernote-bs4"; @import "reports.scss";
application.scssは、上記の下に全体に必要なcssが200行程あります。
以下環境設定の詳細です。
config_enviroments_development
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false # Do not eager load code on boot. config.eager_load = false # Show full error reports. config.consider_all_requests_local = true # Enable/disable caching. By default caching is disabled. # Run rails dev:cache to toggle caching. if Rails.root.join('tmp', 'caching-dev.txt').exist? config.action_controller.perform_caching = true config.cache_store = :memory_store config.public_file_server.headers = { 'Cache-Control' => "public, max-age=#{2.days.to_i}" } else config.action_controller.perform_caching = false config.cache_store = :null_store end # Store uploaded files on the local file system (see config/storage.yml for options) config.active_storage.service = :local #★以下よりgmail想定で変更2019.11.08--------------- # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = true #★falseから変更 config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { #################### } #------------------------------------------------ config.action_mailer.perform_caching = false # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log # Raise an error on page load if there are pending migrations. config.active_record.migration_error = :page_load # Highlight code that triggered database queries in logs. config.active_record.verbose_query_logs = true # Debug mode disables concatenation and preprocessing of assets. # This option may cause significant delays in view rendering with a large # number of complex assets. config.assets.debug = true #ユーザーのブラウザでキャッシュが残っていても更新後の画像が反映される config.assets.digest = false # Suppress logger output for asset requests. config.assets.quiet = true # Raises error for missing translations # config.action_view.raise_on_missing_translations = true # Use an evented file watcher to asynchronously detect changes in source code, # routes, locales, etc. This feature depends on the listen gem. # config.file_watcher = ActiveSupport::EventedFileUpdateChecker end
config_initializers_asetts
# 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 # Add Yarn node_modules folder to the asset load path. Rails.application.config.assets.paths << Rails.root.join('node_modules') # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in the app/assets # folder are already added. # Rails.application.config.assets.precompile += %w( admin.js admin.css ) Rails.application.config.assets.precompile += %w( turbolinks )
書き方や環境の設定(アセットパイプライン?)について何かお知恵がありましたら、教えて頂けると嬉しいです。
全然、変更できず大変こまっております・・・。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/01/19 07:41
2021/01/19 07:42
2021/01/19 07:42
2021/01/19 07:45
2021/01/19 07:49
2021/01/19 08:00
2021/01/19 08:04
2021/01/19 08:19 編集
2021/01/19 08:27
2021/01/19 08:36 編集
2021/01/19 08:59
2021/01/19 09:03