From the course: Vue.js 2 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

How CLI components load

How CLI components load

From the course: Vue.js 2 Essential Training

Start my 1-month free trial

How CLI components load

- [Instructor] Let's take a look at how the project actually built itself from the files that we have available. As I mentioned before, most of the things that you'll need to worry about are in this source folder. But in the public folder we do have that index.html file, and the most important thing you need to know is that the application is all going to be loaded in this div that has the id of app. Also, that in the source folder, you have this main.js file, and this is actually looking for that element with an id of app and mounting the application right here in this command. You're almost never going to need to modify this main.js file, it's sort of like a loader that's going to bring in all of the components that you need. But in here you'll notice that we do have an import statement, and this right here is importing the entire library. Whenever you see an import command with just a name, it means that it's importing something from the node modules folder. And whenever you see a…

Contents