How to build Angular2 app with external json file using angular-cli in prod mode? <p>My Angular2 app is using ng2-translate module and 'en.json' file contains translation. This is all working well in dev mode when built end deployed with angular-cli. But when built in prod mode, and deployed to WildFly, en.json is not found and translation is not loaded.</p> <p>How to build app in prod mode, so en.json is packed inside dist directory?</p>