Skip to content

Commit 14f1336

Browse files
committed
[docs][zh] translated README.md
1 parent b6a067c commit 14f1336

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/zh/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Introduction
1+
# 介绍
22

3-
:::tip VERSION NOTE
4-
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](../migrating.md). If you are using an older version, the old docs are [here](https://vue-loader-v14.vuejs.org).
3+
:::tip 版本注明
4+
这份文档是为 Vue Loader v15 及以上版本撰写的。如果你正在从 v14 或更早的版本往这里迁移,请查阅[迁移指南](../migrating.md)。如果你正在使用老版本,其对应的就文档[在此](https://vue-loader-v14.vuejs.org)
55
:::
66

7-
## What is Vue Loader?
7+
## Vue Loader 是什么?
88

9-
`vue-loader` is a loader for [webpack](https://webpack.js.org/) that allows you to author Vue components in a format called [Single-File Components (SFCs)](./spec.md):
9+
Vue Loader 是一个 [webpack](https://webpack.js.org/) 的 loader,它允许你以一种名为[单文件组件 (SFCs)](./spec.md)的格式撰写 Vue 组件:
1010

1111
``` vue
1212
<template>
@@ -30,12 +30,12 @@ export default {
3030
</style>
3131
```
3232

33-
There are many cool features provided by `vue-loader`:
33+
Vue Loader 还提供了很多酷炫的特性:
3434

35-
- Allows using other webpack loaders for each part of a Vue component, for example Sass for `<style>` and Pug for `<template>`;
36-
- Allows custom blocks in a `.vue` file that can have custom loader chains applied to them;
37-
- Treat static assets referenced in `<style>` and `<template>` as module dependencies and handle them with webpack loaders;
38-
- Simulate scoped CSS for each component;
39-
- State-preserving hot-reloading during development.
35+
- 允许为 Vue 组件的每个部分使用其它的 webpack loader,例如在 `<style>` 的部分使用 Sass 和在 `<template>` 的部分使用 Pug;
36+
- 允许在一个 `.vue` 文件中使用自定义块,并对其运用自定义的 loader 链;
37+
- 使用 webpack loader 将 `<style>` `<template>` 中引用的资源当作模块依赖来处理;
38+
- 为每个组件模拟出带作用域的 CSS
39+
- 在开发过程中可以保持状态的热重载。
4040

41-
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.
41+
简而言之,webpack 和 Vue Loader 的结合为你提供了一个撰写 Vue.js 应用的、现代的、灵活的和极致强大的前端工作流。

0 commit comments

Comments
 (0)