Browse Source

Fix active admin (#152)

* Fix active admin

* Use env webpacker css settings except for rspec

* Extracting css is default here
pull/155/head
baarkerlounger 3 years ago committed by GitHub
parent
commit
1fe523ce07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      config/initializers/active_admin.rb
  2. 8
      config/webpacker.yml

7
config/initializers/active_admin.rb

@ -333,3 +333,10 @@ ActiveAdmin.setup do |config|
# #
config.use_webpacker = true config.use_webpacker = true
end end
# Print stylesheet is no longer a separate stylesheet in upstream so we can
# delete this when the next version bump is released but for now it prevents
# webpacker issues.
Rails.application.config.after_initialize do
ActiveAdmin.application.stylesheets.delete('active_admin/print.css')
end

8
config/webpacker.yml

@ -16,7 +16,7 @@ default: &default
cache_manifest: false cache_manifest: false
# Extract and emit a css file # Extract and emit a css file
extract_css: false extract_css: true
static_assets_extensions: static_assets_extensions:
- .jpg - .jpg
@ -79,14 +79,14 @@ test:
# Compile test packs to a separate directory # Compile test packs to a separate directory
public_output_path: packs-test public_output_path: packs-test
# Extract and emit a css file
extract_css: false
production: production:
<<: *default <<: *default
# Production depends on precompilation of packs prior to booting for performance. # Production depends on precompilation of packs prior to booting for performance.
compile: false compile: false
# Extract and emit a css file
extract_css: true
# Cache manifest.json for performance # Cache manifest.json for performance
cache_manifest: true cache_manifest: true

Loading…
Cancel
Save