Answer the question
In order to leave comments, you need to log in
Laravel-mix not loading paths correctly?
Hello. I use laravel which comes with laravel-mix. It is built on top of webpack.
At the end of the config I have a few lines:
if (mix.config.inProduction) {
mix.version();
}
SyntaxError: expected expression, got '<'
view-source:https://ozzgame.com/history/assets/js/coinflip-bundle.a8143c8e6e217b6de272.js
Answer the question
In order to leave comments, you need to log in
JS uses dynamic loading, and non-absolute paths are used there, so everything breaks when there is a "subfolder" in the address, i.e. site.com/dsa/sada
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question