D
D
devilsD2020-08-15 11:37:53
webpack
devilsD, 2020-08-15 11:37:53

Webpack, dynamic import, how to specify module url after build?

Import is used on the assembly of the usual layout, not spa:

import("./components/someFIle").then(function (Module) { new Vue(Module.default) })

And since the path to the module is relative, it is loaded only on the main page.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question