Skip to content

Commit c6ede08

Browse files
Jinjiangkazupon
authored andcommitted
[doc] added loader suffix: 'vue' -> 'vue-loader' (#1043)
1 parent 14921e4 commit c6ede08

File tree

8 files changed

+30
-30
lines changed

8 files changed

+30
-30
lines changed

docs/en/configurations/custom-blocks.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
You can define custom language blocks inside `*.vue` files. The content of a custom block will be processed by the loaders specified in the `loaders` object of `vue-loader` options and then required by the component module. The configuration is similar to what is described in [Advanced Loader Configuration](../configurations/advanced.md), except the matching uses the tag name instead of the `lang` attribute.
66

7-
If a matching loader is found for a custom block, it will be processed; otherwise the custom block will simply be ignored. Additionally, if the found loader returns a function, that function will be called with the component of the `*.vue` file as a parameter.
7+
If a matching loader is found for a custom block, it will be processed; otherwise the custom block will simply be ignored. Additionally, if the found loader returns a function, that function will be called with the component of the `*.vue` file as a parameter.
88

99
## Single docs file example
1010

@@ -49,7 +49,7 @@ module.exports = {
4949
rules: [
5050
{
5151
test: /\.vue$/,
52-
loader: 'vue',
52+
loader: 'vue-loader',
5353
options: {
5454
loaders: {
5555
// extract all <docs> content as raw text
@@ -70,9 +70,9 @@ module.exports = {
7070

7171
Here's an example of injecting the `<docs>` custom blocks into the component so that it's available during runtime.
7272

73-
#### docs-loader.js
73+
#### docs-loader.js
7474

75-
In order for the custom block content to be injected, we'll need a custom loader:
75+
In order for the custom block content to be injected, we'll need a custom loader:
7676

7777
``` js
7878
module.exports = function (source, map) {
@@ -94,7 +94,7 @@ module.exports = {
9494
rules: [
9595
{
9696
test: /\.vue$/,
97-
loader: 'vue',
97+
loader: 'vue-loader',
9898
options: {
9999
loaders: {
100100
'docs': docsLoader
@@ -108,7 +108,7 @@ module.exports = {
108108

109109
#### component.vue
110110

111-
We are now able to access the `<docs>` block's content of imported components during runtime.
111+
We are now able to access the `<docs>` block's content of imported components during runtime.
112112

113113
``` html
114114
<template>

docs/ja/configurations/custom-blocks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
rules: [
5050
{
5151
test: /\.vue$/,
52-
loader: 'vue',
52+
loader: 'vue-loader',
5353
options: {
5454
loaders: {
5555
// 全ての <docs> の内容は raw text として展開されます
@@ -70,7 +70,7 @@ module.exports = {
7070

7171
`<docs>`カスタムブロックをコンポーネントに注入して実行時に利用できるようにする例です。
7272

73-
#### docs-loader.js
73+
#### docs-loader.js
7474

7575
カスタムブロックコンテンツを注入するためには、カスタム loader が必要です:
7676

@@ -94,7 +94,7 @@ module.exports = {
9494
rules: [
9595
{
9696
test: /\.vue$/,
97-
loader: 'vue',
97+
loader: 'vue-loader',
9898
options: {
9999
loaders: {
100100
'docs': docsLoader

docs/kr/configurations/custom-blocks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
rules: [
5050
{
5151
test: /\.vue$/,
52-
loader: 'vue',
52+
loader: 'vue-loader',
5353
options: {
5454
loaders: {
5555
// 모든 <docs>의 내용을 원문 그대로 추출합니다
@@ -94,7 +94,7 @@ module.exports = {
9494
rules: [
9595
{
9696
test: /\.vue$/,
97-
loader: 'vue',
97+
loader: 'vue-loader',
9898
options: {
9999
loaders: {
100100
'docs': docsLoader

docs/kr/features/css-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module: {
104104
rules: [
105105
{
106106
test: '\.vue$',
107-
loader: 'vue',
107+
loader: 'vue-loader',
108108
options: {
109109
cssModules: {
110110
localIdentName: '[path][name]---[local]---[hash:base64:5]',

docs/kr/options.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
rules: [
1212
{
1313
test: /\.vue$/,
14-
loader: 'vue',
14+
loader: 'vue-loader',
1515
options: {
1616
// vue-loader 옵션
1717
}
@@ -65,14 +65,14 @@ module: {
6565

6666
- 타입: `{ [lang: string]: string }`
6767
- only supported in >=10.3.0
68-
- 10.3.0 버전 이후 지원
68+
- 10.3.0 버전 이후 지원
6969

7070
`loaders` 설정의 포맷과 동일하지만, `preLoaders`는 기본 로더보다 우선하여 language block에 적용됩니다. 이를 사용하면 language block을 미리 처리할 수 있습니다. (일반적인 사용 사례는 빌드 타임에 국제화를 적용하는 경우입니다.)
7171

7272
### postLoaders
7373

7474
- 타입: `{ [lang: string]: string }`
75-
- 10.3.0 버전 이후 지원
75+
- 10.3.0 버전 이후 지원
7676

7777
`loaders` 설정의 포맷과 동일하지만, `preLoaders`는 기본 로더보다 나중에 적용됩니다. 이를 사용하면 language block에 대한 사후 처리를 할 수 있습니다. 약간 복잡합니다.
7878

docs/pt_BR/configurations/custom-blocks.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
rules: [
5050
{
5151
test: /\.vue$/,
52-
loader: 'vue',
52+
loader: 'vue-loader',
5353
options: {
5454
loaders: {
5555
// extrai todo conteúdo de <docs> em texto bruto
@@ -88,13 +88,13 @@ Agora, vamos configurar o webpack para usar o nosso carregador personalizado par
8888

8989
``` js
9090
const docsLoader = require.resolve('./custom-loaders/docs-loader.js')
91-
91+
9292
module.exports = {
9393
module: {
9494
rules: [
9595
{
9696
test: /\.vue$/,
97-
loader: 'vue',
97+
loader: 'vue-loader',
9898
options: {
9999
loaders: {
100100
'docs': docsLoader
@@ -105,22 +105,22 @@ Agora, vamos configurar o webpack para usar o nosso carregador personalizado par
105105
}
106106
}
107107
```
108-
108+
109109
#### component.vue
110-
110+
111111
Agora podemos acessar o conteúdo do bloco `<docs>` de componentes importados durante o tempo de execução.
112-
112+
113113
``` html
114114
<template>
115115
<div>
116116
<component-b />
117117
<p>{{ docs }}</p>
118118
</div>
119119
</template>
120-
120+
121121
<script>
122122
import componentB from 'componentB';
123-
123+
124124
export default = {
125125
data () {
126126
return {

docs/ru/configurations/custom-blocks.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
rules: [
5050
{
5151
test: /\.vue$/,
52-
loader: 'vue',
52+
loader: 'vue-loader',
5353
options: {
5454
loaders: {
5555
// извлечь всё содержимое тегов <docs> как обычный текст
@@ -70,9 +70,9 @@ module.exports = {
7070

7171
Вот пример того, как можно встроить пользовательские блоки `<docs>` в компонент, чтобы он был доступен во время выполнения.
7272

73-
#### docs-loader.js
73+
#### docs-loader.js
7474

75-
Для инъекции содержимого пользовательского блока понадобится пользовательский загрузчик:
75+
Для инъекции содержимого пользовательского блока понадобится пользовательский загрузчик:
7676

7777
``` js
7878
module.exports = function (source, map) {
@@ -94,7 +94,7 @@ module.exports = {
9494
rules: [
9595
{
9696
test: /\.vue$/,
97-
loader: 'vue',
97+
loader: 'vue-loader',
9898
options: {
9999
loaders: {
100100
'docs': docsLoader
@@ -108,7 +108,7 @@ module.exports = {
108108

109109
#### component.vue
110110

111-
Теперь мы можем получить доступ к содержимому блока `<docs>` импортированного компонента на этапе выполнения.
111+
Теперь мы можем получить доступ к содержимому блока `<docs>` импортированного компонента на этапе выполнения.
112112

113113
``` html
114114
<template>

docs/zh-cn/configurations/custom-blocks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
rules: [
5151
{
5252
test: /\.vue$/,
53-
loader: 'vue',
53+
loader: 'vue-loader',
5454
options: {
5555
loaders: {
5656
// 提取 <docs> 中的内容为原始文本
@@ -95,7 +95,7 @@ module.exports = {
9595
rules: [
9696
{
9797
test: /\.vue$/,
98-
loader: 'vue',
98+
loader: 'vue-loader',
9999
options: {
100100
loaders: {
101101
'docs': docsLoader

0 commit comments

Comments
 (0)