Skip to content

Commit 19c5414

Browse files
committed
docs: document new features in 13.1.0 & 13.2.0
1 parent 5eb192d commit 19c5414

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Template for Functional Components
2+
3+
> New in 13.1.0, requires Vue >= 2.5.0
4+
5+
To denote a template that should be compiled as a functional component, add the `functional` attribute to the template block. This also allows omitting the `functional` option in the `<script>` block.
6+
7+
Expressions in the template are evaluated in the [functional render context](https://vuejs.org/v2/guide/render-function.html#Functional-Components). This means props need to be accessed as `props.xxx` in the template:
8+
9+
``` html
10+
<template functional>
11+
<div>{{ props.foo }}</div>
12+
</template>
13+
```

docs/en/options.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@ module.exports = {
112112
}
113113
```
114114

115+
### postcss.configRoot
116+
117+
> New in 13.2.0
118+
119+
- type: `string`
120+
- default: `process.cwd()`
121+
122+
Specify an alternative root directory for [postcss-load-config](https://github.com/michael-ciniawsky/postcss-load-config) to search for PostCSS config files in.
123+
124+
``` js
125+
postcss: {
126+
configRoot: path.resolve('./src')
127+
}
128+
```
129+
115130
### cssSourceMap
116131

117132
- type: `boolean`
@@ -276,3 +291,12 @@ module.exports = {
276291
- default: `true` when the webpack config has `target: 'node'` and `vue-template-compiler` is at version 2.4.0 or above.
277292

278293
Enable Vue 2.4 SSR compilation optimization that compiles part of the vdom trees returned by render functions into plain strings, which improves SSR performance. In some cases you might want to explicitly turn it off because the resulting render functions can only be used for SSR and cannot be used for client-side rendering or testing.
294+
295+
### cacheBusting
296+
297+
> New in 13.2.0
298+
299+
- type: `boolean`
300+
- default: `true` in development mode, `false` in production mode.
301+
302+
Whether generate source maps with cache busting by appending a hash query to the file name. Turning this off can help with source map debugging.

0 commit comments

Comments
 (0)