# vuejs/vue-loader

📦 Webpack loader for Vue.js components

Repository: https://github.com/vuejs/vue-loader
Canonical: https://ross.abutalabs.com/products/vue-loader
Language: TypeScript
License: MIT
License Family: permissive
Topics: vue, webpack, hot-reload, single-file-component
Last push: 2024-08-07T07:28:11+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4354, "days_push": 756, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4962, forks 908 (observed 2026-08-28T04:09:03.916340+00:00)

## What it is
vue-loader is the official webpack loader for compiling Vue.js Single-File Components (.vue files) into JavaScript modules. It enables per-block loader chains, scoped CSS, static asset handling, and state-preserving hot reloading.

## Use cases
- compile .vue single-file components with webpack
- use Sass or Pug inside Vue component style and template blocks
- get hot module reload while editing Vue components
- scope CSS styles per Vue component
- build Vue custom elements with webpack
- use TypeScript expressions in Vue templates

## When to choose
- you build a Vue.js app with a webpack-based toolchain
- you need Single-File Component compilation with scoped CSS and hot reload
- you want custom webpack loader chains for template, script, or style blocks

## When to avoid
- your project uses Vite, which has its own Vue plugin instead
- you use Vue without a bundler or with a non-webpack build system
- you only need plain JavaScript components without SFCs

## Facets
- artifact type: plugin
- maturity: stable
- function: build-tool, frontend-framework, templating
- domain: web-development, frontend, developer-tools
- platform: cross-platform
- tags: vue, webpack-loader, single-file-components, hot-reload, scoped-css, nodejs

## Member repositories
- vuejs/vue-loader (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:03.916340+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:17:47.792921+00:00, confidence not recorded.
  - readme: https://github.com/vuejs/vue-loader (fetched 2026-08-28T04:09:03.916340+00:00, sha aadc886d040c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
