Introduction 您所在的位置:网站首页 v_loader Introduction

Introduction

#Introduction | 来源: 网络整理| 查看: 265

# Introduction

VERSION NOTE

This is the documentation for Vue Loader v15 and above. If you are upgrading from v14 or an earlier version, check out the Migration Guide. If you are using an older version, the old docs are here .

# 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):

{{ msg }} export default { data () { return { msg: 'Hello world!' } } } .example { color: red; }

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 and Pug for ; Allows custom blocks in a .vue file that can have custom loader chains applied to them; Treat static assets referenced in and 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.

Getting Started →



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有