webpack loader for Vue Single-File Components
JSON →vue-loader is the essential webpack loader for building Vue.js applications using Single-File Components (SFCs). It enables webpack to parse `.vue` files, allowing developers to structure their components with separate `<template>`, `<script>`, and `<style>` blocks, each of which can leverage other webpack loaders (e.g., Sass for styles, Pug for templates, TypeScript for scripts). The current stable version is 17.4.2, which primarily targets Vue 3 and webpack 5, though it retains some compatibility with webpack 4. The project maintains an active release cadence, frequently publishing bug fixes and feature enhancements. Key differentiators include its deep integration with the Vue SFC specification, providing features like scoped CSS, custom blocks, efficient asset handling, and state-preserving hot-reloading for an optimized development experience, making it an indispensable part of most Vue CLI and custom webpack setups.
Traffic · last 30 days ↓29% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany