Home > Web Front-end > JS Tutorial > body text

Detailed analysis of SFC and vue-loader in Vue

不言
Release: 2018-07-21 11:19:35
Original
5149 people have browsed it

This article shares with you a specific analysis of SFC and vue-loader in Vue. The content is very good. Friends in need can refer to it. I hope it can help everyone.

Official website: https://vue-loader.vuejs.org/zh/
vue-loader is a webpack loader. Simply put, it converts vue files into JS modules. When the babel-loader or bubble-loader configuration is detected, ES2015 is automatically supported;
Using vue-loader, you can write a component in the form of Vue Single-File Component (SFC), that is, a single file component.

.vue Single File Component (SFC) Specification

1.