diff --git a/src/v2/guide/components.md b/src/v2/guide/components.md index fa2486e223..e7a487df5d 100644 --- a/src/v2/guide/components.md +++ b/src/v2/guide/components.md @@ -1050,7 +1050,7 @@ Vue.component( ) ``` -When using [local registration](https://vuejs.org/v2/guide/components.html#Local-Registration), you can also directly provide a function that returns a `Promise`: +When using [local registration](components.html#Local-Registration), you can also directly provide a function that returns a `Promise`: ``` js new Vue({ diff --git a/src/v2/guide/deployment.md b/src/v2/guide/deployment.md index bfe2bfd1b3..95ff9e8a1a 100644 --- a/src/v2/guide/deployment.md +++ b/src/v2/guide/deployment.md @@ -67,7 +67,7 @@ rollup({ When using in-DOM templates or in-JavaScript template strings, the template-to-render-function compilation is performed on the fly. This is usually fast enough in most cases, but is best avoided if your application is performance-sensitive. -The easiest way to pre-compile templates is using [Single-File Components](./single-file-components.html) - the associated build setups automatically performs pre-compilation for you, so the built code contains the already compiled render functions instead of raw template strings. +The easiest way to pre-compile templates is using [Single-File Components](single-file-components.html) - the associated build setups automatically performs pre-compilation for you, so the built code contains the already compiled render functions instead of raw template strings. If you are using Webpack, and prefer separating JavaScript and template files, you can use [vue-template-loader](https://github.com/ktsn/vue-template-loader), which also transforms the template files into JavaScript render functions during the build step. diff --git a/src/v2/guide/installation.md b/src/v2/guide/installation.md index b2d243178b..5f3e14c173 100644 --- a/src/v2/guide/installation.md +++ b/src/v2/guide/installation.md @@ -202,7 +202,7 @@ Apply a global [envify](https://github.com/hughsk/envify) transform to your bund NODE_ENV=production browserify -g envify -e main.js | uglifyjs -c -m > build.js ``` -Also see [Production Deployment Tips](./deployment.html). +Also see [Production Deployment Tips](deployment.html). ### CSP environments diff --git a/src/v2/guide/render-function.md b/src/v2/guide/render-function.md index 26653d1c14..011001b4d1 100644 --- a/src/v2/guide/render-function.md +++ b/src/v2/guide/render-function.md @@ -360,7 +360,7 @@ on: { ### Slots -You can access static slot contents as Arrays of VNodes from [`this.$slots`](http://vuejs.org/v2/api/#vm-slots): +You can access static slot contents as Arrays of VNodes from [`this.$slots`](../api/#vm-slots): ``` js render: function (createElement) { @@ -369,7 +369,7 @@ render: function (createElement) { } ``` -And access scoped slots as functions that return VNodes from [`this.$scopedSlots`](http://vuejs.org/v2/api/#vm-scopedSlots): +And access scoped slots as functions that return VNodes from [`this.$scopedSlots`](../api/#vm-scopedSlots): ``` js render: function (createElement) {