Skip to content

Commit 30867c1

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 58fb1aa + 1f57f5e commit 30867c1

19 files changed

+164
-44
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
<a name="15.7.2"></a>
2+
## [15.7.2](https://github.com/vuejs/vue-loader/compare/v15.7.1...v15.7.2) (2019-11-02)
3+
4+
5+
### Bug Fixes
6+
7+
* add cache-loader to optional peer dependency ([e9d8b71](https://github.com/vuejs/vue-loader/commit/e9d8b71))
8+
* use `require.resolve` when referencing `cache-loader` ([#1585](https://github.com/vuejs/vue-loader/issues/1585)) ([d3fa467](https://github.com/vuejs/vue-loader/commit/d3fa467))
9+
10+
11+
12+
<a name="15.7.1"></a>
13+
## [15.7.1](https://github.com/vuejs/vue-loader/compare/v15.7.0...v15.7.1) (2019-07-18)
14+
15+
16+
### Bug Fixes
17+
18+
* use "api.isRecorded" instead of "module.hot.data" ([#1569](https://github.com/vuejs/vue-loader/issues/1569)) ([6a05115](https://github.com/vuejs/vue-loader/commit/6a05115))
19+
20+
21+
122
<a name="15.7.0"></a>
223
# [15.7.0](https://github.com/vuejs/vue-loader/compare/v15.6.4...v15.7.0) (2019-02-28)
324

docs/guide/asset-url.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ By default the following tag/attribute combinations are transformed, and can be
2525
video: ['src', 'poster'],
2626
source: 'src',
2727
img: 'src',
28-
image: 'xlink:href'
28+
image: ['xlink:href', 'href'],
29+
use: ['xlink:href', 'href']
2930
}
3031
```
3132

docs/guide/custom-blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ This is the documentation for component B.
7676
<!-- ComponentA.vue -->
7777
<template>
7878
<div>
79-
<ComponentB/>
79+
<ComponentB />
8080
<p>{{ docs }}</p>
8181
</div>
8282
</template>

docs/guide/pre-processors.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ Note that `sass-loader` processes the non-indent-based `scss` syntax by default.
6363
loader: 'sass-loader',
6464
options: {
6565
indentedSyntax: true
66+
// sass-loader version >= 8
67+
sassOptions: {
68+
indentedSyntax: true
69+
}
6670
}
6771
}
6872
]
@@ -71,7 +75,7 @@ Note that `sass-loader` processes the non-indent-based `scss` syntax by default.
7175

7276
### Sharing Global Variables
7377

74-
`sass-loader` also supports a `data` option which allows you to share common variables among all processed files without having to explicit import them:
78+
`sass-loader` also supports a `prependData` option which allows you to share common variables among all processed files without having to explicit import them:
7579

7680
``` js
7781
// webpack.config.js -> module.rules
@@ -84,7 +88,8 @@ Note that `sass-loader` processes the non-indent-based `scss` syntax by default.
8488
loader: 'sass-loader',
8589
options: {
8690
// you can also read from a file, e.g. `variables.scss`
87-
data: `$color: red;`
91+
// use `data` here if sass-loader version < 8
92+
prependData: `$color: red;`
8893
}
8994
}
9095
]

docs/options.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ sidebar: auto
1414
video: ['src', 'poster'],
1515
source: 'src',
1616
img: 'src',
17-
image: 'xlink:href'
17+
image: ['xlink:href', 'href'],
18+
use: ['xlink:href', 'href']
1819
}
1920
```
2021

docs/ru/guide/asset-url.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ createElement('img', {
2525
video: ['src', 'poster'],
2626
source: 'src',
2727
img: 'src',
28-
image: 'xlink:href'
28+
image: ['xlink:href', 'href'],
29+
use: ['xlink:href', 'href']
2930
}
3031
```
3132

docs/ru/guide/pre-processors.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ module.exports = {
6363
loader: 'sass-loader',
6464
options: {
6565
indentedSyntax: true
66+
// sass-loader >= 8
67+
sassOptions: {
68+
indentedSyntax: true
69+
}
6670
}
6771
}
6872
]
@@ -71,7 +75,7 @@ module.exports = {
7175

7276
### Передача глобальных переменных
7377

74-
`sass-loader` также поддерживает опцию `data`, которая позволяет вам передавать общие переменные во все обрабатываемые файлы без необходимости везде их явно импортировать:
78+
`sass-loader` также поддерживает опцию `prependData`, которая позволяет вам передавать общие переменные во все обрабатываемые файлы без необходимости везде их явно импортировать:
7579

7680
``` js
7781
// webpack.config.js -> module.rules
@@ -84,7 +88,8 @@ module.exports = {
8488
loader: 'sass-loader',
8589
options: {
8690
// вы можете также указать файл, например `variables.scss`
87-
data: `$color: red;`
91+
// use `data` here if sass-loader version < 8
92+
prependData: `$color: red;`
8893
}
8994
}
9095
]

docs/ru/options.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ sidebar: auto
1414
video: ['src', 'poster'],
1515
source: 'src',
1616
img: 'src',
17-
image: 'xlink:href'
17+
image: ['xlink:href', 'href'],
18+
use: ['xlink:href', 'href']
1819
}
1920
```
2021

docs/zh/guide/asset-url.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ createElement('img', {
2525
video: ['src', 'poster'],
2626
source: 'src',
2727
img: 'src',
28-
image: 'xlink:href'
28+
image: ['xlink:href', 'href'],
29+
use: ['xlink:href', 'href']
2930
}
3031
```
3132

docs/zh/guide/pre-processors.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ module.exports = {
6363
loader: 'sass-loader',
6464
options: {
6565
indentedSyntax: true
66+
// sass-loader version >= 8
67+
sassOptions: {
68+
indentedSyntax: true
69+
}
6670
}
6771
}
6872
]
@@ -71,7 +75,7 @@ module.exports = {
7175

7276
### 共享全局变量
7377

74-
`sass-loader` 也支持一个 `data` 选项,这个选项允许你在所有被处理的文件之间共享常见的变量,而不需要显式地导入它们:
78+
`sass-loader` 也支持一个 `prependData` 选项,这个选项允许你在所有被处理的文件之间共享常见的变量,而不需要显式地导入它们:
7579

7680
``` js
7781
// webpack.config.js -> module.rules
@@ -84,7 +88,8 @@ module.exports = {
8488
loader: 'sass-loader',
8589
options: {
8690
// 你也可以从一个文件读取,例如 `variables.scss`
87-
data: `$color: red;`
91+
// 如果 sass-loader 版本 < 8,这里使用 `data` 字段
92+
prependData: `$color: red;`
8893
}
8994
}
9095
]
@@ -220,7 +225,7 @@ TypeScript 的配置可以通过 `tsconfig.json` 来完成。你也可以查阅
220225

221226
## Pug
222227

223-
模板的处理会稍微有些不同,因为绝大对数 webpack 的模板类 loader,诸如 `pug-loader`,会返回一个模板函数而不是一个编译好的 HTML 字符串。所以我们需要使用一个返回原始的 HTML 字符串的 loader,例如 `pug-plain-loader`,而不是使用 `pug-loader`
228+
模板的处理会稍微有些不同,因为绝大多数 webpack 的模板类 loader,诸如 `pug-loader`,会返回一个模板函数而不是一个编译好的 HTML 字符串。所以我们需要使用一个返回原始的 HTML 字符串的 loader,例如 `pug-plain-loader`,而不是使用 `pug-loader`
224229

225230
``` bash
226231
npm install -D pug pug-plain-loader

0 commit comments

Comments
 (0)