DEV Community

Discussion on: An introduction to Vue.js - Chapter 1 - Basic Setup

Collapse
 
martyonthefly profile image
Sylvain Marty • Edited

Hi Moritz,

Your tutorial is nice and your explanations are very clear !

I have a few questions about some choices you have made for this tutorial :

  • Why adding extra runtime scripts (build and build:js) which are only aliases to the webpack simple command ? I know that you will change this later but for now you are going to use only one of those... :)
  • Why didn't you use the VueJS template resolver with .vue files ? You have setted up Webpack and Babel but you loose some great features that provide .vue files like scoped style, template linter, etc.

Thanks for sharing ! :)

Edit: some misspelling... Oops

Collapse
 
neradev profile image
Moritz Schramm

Hi Sylvain,

thanks for your feedback. You have two very legitimate questions. Let me try to answer both.

  1. As you can see we already added one additional script for copying the index.html to the correct folder what should also be done in a build script even though it is not part of the usual Webpack compiling. Moreover I call the webpack command from the package.json to avoid installing dependencies on a global level because that could lead to version conflicts when using multiple projects.
  2. I do not prefer working .vue files for multiple reasons. Since you are not the first one asking for Single File Components, I will write a chapter just about this and why I do not like working with them.
Collapse
 
martyonthefly profile image
Sylvain Marty

I didn't thought about conflicts when installing global dependencies ! This is a good point ;)

It's very cool to have differents opinions :)

I look forward to read your next chapter !

Thread Thread
 
neradev profile image
Moritz Schramm

Yup that is something that I really like as well within the dev.to community.

The next chapter is already published. :)