Skip to content

Commit

Permalink
Merge pull request #4205 from himdel/fix-paths
Browse files Browse the repository at this point in the history
webpack:paths - always load inflectors
  • Loading branch information
Fryguy authored Jun 25, 2018
2 parents 9837678 + d0e5b1f commit 865a0ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tasks/manageiq/ui_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ namespace :ui do
end
end
end

task :load_inflectors => ["ui:load_app_inflectors", "ui:load_asset_engine_inflectors"]
end

namespace :webpack do
Expand All @@ -82,16 +84,14 @@ namespace :webpack do
# 'webpacker:compile') to function.
EvmRakeHelper.with_dummy_database_url_configuration do
Dir.chdir ManageIQ::UI::Classic::Engine.root do
Rake::Task["ui:load_app_inflectors"].invoke
Rake::Task["ui:load_asset_engine_inflectors"].invoke
Rake::Task["webpack:paths"].invoke
Rake::Task["webpacker:#{webpacker_task}"].invoke
end
end
end
end

task :paths do
task :paths => 'ui:load_inflectors' do
paths_config = ManageIQ::UI::Classic::Engine.root.join('config/webpack/paths.json')

File.open(paths_config, 'w') do |file|
Expand Down

0 comments on commit 865a0ce

Please sign in to comment.