Closed Elhebert closed 6 years ago
I removed the leading / from the webpackChunkName, two reasons:
/
webpackChunkName
//js/my-component.js
/js/my-component.js
Great articel by the way!
Leading slashes always confuse me with Webpack 😅 Thanks!
Webpack as a whole confuse me 😬
I removed the leading
/
from thewebpackChunkName
, two reasons:/
. I haven't check deep enough, but it seemds that webpack (or Mix) add a leading/
no matter what, thus resulting in the browser trying to load//js/my-component.js
instead of/js/my-component.js
Great articel by the way!