The syntax of import is import xxx from ooo. Now in vue, can the location of ooo use an external url? That is to say, this file is not in this project. Can I introduce the components in this file?
世界只因有你2017-05-19 10:16:13
Ruan Yifeng’s introduction to es6. Now es6 is translated into es5 through babel. Your question is that the root path of the loaded file should be set in webpack
仅有的幸福2017-05-19 10:16:13
If it is the address of the local machine, it is ok. Because it is finally packaged through webpack
If it is the URL of the http protocol, it is not ok.
If npm cannot install webpack, try installing it with cnpm