| 
				
					 | 
			il y a 4 ans | |
|---|---|---|
| .. | ||
| .github | il y a 4 ans | |
| lib | il y a 4 ans | |
| .babelrc | il y a 4 ans | |
| .eslintrc.js | il y a 4 ans | |
| CHANGELOG.md | il y a 4 ans | |
| LICENSE | il y a 4 ans | |
| README.md | il y a 4 ans | |
| package.json | il y a 4 ans | |
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.
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:
<style> and Pug for <template>;.vue file that can have custom loader chains applied to them;<style> and <template> as module dependencies and handle them with webpack loaders;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.