Book Image

Vue.js: Understanding its Tools and Ecosystem

By : Dave Berning
Book Image

Vue.js: Understanding its Tools and Ecosystem

By: Dave Berning

Overview of this book

Vue.js is one of the top three “go-to” JavaScript frameworks and is used by organizations such as Nintendo, NASA, and Expedia. This book is primarily focused on the ecosystem of Vue.js and its development tools. Understanding the basics of the technology behind the Vue.js ecosystem will improve your skills and make you a better problem solver. The book begins with a brief overview of Vue.js. You’ll learn to work your way through the Vue command line interface CLI 3, and use the Vue Router library to navigate between the different views of your application. As you advance through the topics, you’ll explore the use of DevTools to improve the quality of your applications and how to implement server-side rendering in your application through the Nuxt.js framework. Toward the end of the book, you’ll read about the future of Vue.js and its growing popularity. After reading this book, you’ll be able to create industry-grade applications using Vue.js and its tools.
Table of Contents (11 chapters)

Chapter 7. Static Site Generation with VuePress

If you haven’t heard of VuePress before, that’s probably because Vue.js creator, Evan You, just released version 0.1.0 in early 2018. VuePress is the newest project in Vue’s ecosystem and when launched, quickly became the number one product on Product Hunt. In Chapter 6: Server-Side Rendering With Nuxt.js, you learned about Nuxt.js, the server-side rendering framework that helps you create server rendered universal applications. As mentioned in that chapter, Nuxt.js also has a nuxt generate command that renders all of your pages into flat, static HTML pages. Once a page is loaded, the app is “hydrated” and becomes a traditional single page application. Much like Nuxt’s generate command, VuePress also generates flat HTML files which then gets “hydrated” into a traditional SPA when the first page (or entry point) is loaded.

So, why VuePress? Doesn’t Nuxt.js already do everything...