Skip to content

Commit

Permalink
webpack:paths - always load inflectors
Browse files Browse the repository at this point in the history
this was working when run as part of webpack:compile
but running webpack:paths by itself would fail to generate manageiq-v2v, using manageiq-v2_v instead
  • Loading branch information
himdel committed Jun 25, 2018
1 parent 9837678 commit d0e5b1f
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 d0e5b1f

Please sign in to comment.