Skip to content

Commit

Permalink
Build Admin Tailwind assets when generating sandbox
Browse files Browse the repository at this point in the history
This removes the need to start the sandbox from the main Solidus
folder with `bin/dev`, allowing to use `bin/dev` from the sandbox
folder as well. Using `rails server` remains discouraged.
  • Loading branch information
spaghetticode committed Jan 29, 2024
1 parent 4c715af commit 82030bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/generators/solidus/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def install_solidus_admin
unless File.read(app_path.join('Gemfile')).include?('solidus_admin')
bundle_command 'add solidus_admin -v ">= 0.2"'
end
generate 'solidus_admin:install'
generate "solidus_admin:install #{options[:build_admin_tailwind] ? '--tailwind' : ''}"
end

def populate_seed_data
Expand Down

0 comments on commit 82030bd

Please sign in to comment.