Single file components with Webpack

Vue was a game changer mostly because it changed the way to partition responsibilities. It wasn't the first to do that, but it certainly extended on that. Earlier, we used one file for HTML, one for CSS, and one for JavaScript. Little did we know that the three files were all about the same thing--components. Yet, they split several components vertically instead of horizontally. In Vue, we keep components well isolated in a single file with the help of tools such as Webpack. In this recipe, you will learn how.

Get Vue.js 2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.