Skip to content

📦 Webpack loader for Vue.js components

License

Notifications You must be signed in to change notification settings

arcanis/vue-loader

This branch is 296 commits ahead of, 254 commits behind vuejs/vue-loader:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a3b4007 Â· Aug 31, 2019
Mar 19, 2018
Apr 24, 2018
Mar 28, 2019
Mar 25, 2018
Aug 31, 2019
Mar 11, 2019
Mar 18, 2018
Mar 19, 2018
Feb 18, 2019
Jun 1, 2018
Jul 18, 2019
Mar 19, 2018
May 14, 2018
Mar 22, 2018
Jul 18, 2019
May 2, 2018
Jul 18, 2019

Repository files navigation

vue-loader Build Status Windows Build status

webpack loader for Vue Single-File Components

NOTE: The master branch now hosts the code for v15! Legacy code is now in the v14 branch.

What is Vue Loader?

vue-loader is a loader for webpack that allows you to author Vue components in a format called Single-File Components (SFCs):

<template>
  <div class="example">{{ msg }}</div>
</template>

<script>
export default {
  data () {
    return {
      msg: 'Hello world!'
    }
  }
}
</script>

<style>
.example {
  color: red;
}
</style>

There are many cool features provided by vue-loader:

  • Allows using other webpack loaders for each part of a Vue component, for example Sass for <style> and Pug for <template>;
  • Allows custom blocks in a .vue file that can have custom loader chains applied to them;
  • Treat static assets referenced in <style> and <template> as module dependencies and handle them with webpack loaders;
  • Simulate scoped CSS for each component;
  • State-preserving hot-reloading during development.

In a nutshell, the combination of webpack and vue-loader gives you a modern, flexible and extremely powerful front-end workflow for authoring Vue.js applications.

About

📦 Webpack loader for Vue.js components

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Other 0.5%