P
P
Pavel2019-06-03 17:51:23
React
Pavel, 2019-06-03 17:51:23

How to build multiple React apps with webpack without messing with relative paths?

Given:
1. Wrapper application. Contains N-divs with unique id.
2. N-applications that are loaded from a link (like an internal CDN) and rendered into those divs.
Question:
How to assemble these N-applications with webpack so that the main wrapper application can easily pick up everything, and all dynamic imports of those applications are sent to the necessary files (these files, like pictures, are physically located on CDN servers, but are launched from the application- wrappers, respectively, all relative paths will lead to the server that holds the wrapper application, and not to those CDN instances).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-06-03
@rockon404

file-loader + nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question