Introduction

Webpack coupled with npm is a very powerful tool. In essence, it's just a bundler that takes some files along with their dependencies and bundles everything into one or more consumable files. It's now in its second version and represents much more than before, especially for Vue developers.

Webpack will enable you to write components conveniently isolated in single files and shippable on command. It will enable you to use different JavaScript standards, such as ES6, but also other languages altogether, all thanks to loaders, a concept that will recur in the following recipes.

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.