1

In my project I'm splitting Webpack into different files, the output is going to the web accessible /js directory.

When I import the main.js file and it tries to load the dynamic files I get this error

Error: "Loading chunk controller/About failed.
(error: [...]/controller/About.js)"

Which makes perfect sense, but how can I get Webpack to load that relative to the web /js directory; i.e. I want it to load .../js/controller/About.js instead of .../controller/About.js

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.