Webpack And Vue Async Component From Different Project / Domain
I'm pretty new on webpack, I already watch some tutorials and get a working configuration on my project. I try to load vuejs components asynchronously in this way:
Solution 1:
Sure, that's why publicPath (https://webpack.js.org/guides/public-path/) was invented. You can set it on build time, or more conveniently on run-time - just assign window.webpack_public_path = 'https://my_widget_host.com/';
Regards.
Post a Comment for "Webpack And Vue Async Component From Different Project / Domain"