Skip to content

Commit 63ff8c1

Browse files
Alex-Sokolovyyx990803
authored andcommitted
docs: use relative links (vuejs#1844)
1 parent 5be748e commit 63ff8c1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/config/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,10 @@ See [@vue/cli-plugin-e2e-cypress](https://github.com/vuejs/vue-cli/tree/dev/pack
350350
See [@vue/cli-plugin-e2e-nightwatch](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-nightwatch) for more details.
351351

352352
## Example Configurations
353+
353354
### Disable Hashed Filenames
354-
While generated static asset filenames contain a hash to [ensure the browser picks up changed files](https://webpack.js.org/guides/caching/#output-filenames) this can be disabled. One common scenario for this is when integrating Vue with a backend that dictates a code structure other than what Vue CLI generates, such as with WordPress or Laravel. To disable the hashed filenames, the following can be added to `[vue.config.js](https://cli.vuejs.org/config/#vue-config-js)`:
355355

356+
While generated static asset filenames contain a hash to [ensure the browser picks up changed files](https://webpack.js.org/guides/caching/#output-filenames) this can be disabled. One common scenario for this is when integrating Vue with a backend that dictates a code structure other than what Vue CLI generates, such as with WordPress or Laravel. To disable the hashed filenames, the following can be added to [`vue.config.js`](#vue-config-js):
356357

357358
``` js
358359
// vue.config.js
@@ -377,11 +378,14 @@ module.exports = {
377378
},
378379
};
379380
```
381+
380382
::: tip
381383
When manually overwriting `filename` or `chunkFilename`, `assetsDir` does not need to be included in their path values.
382384
:::
385+
383386
### Disable Generating index.html
384-
When using Vue CLI with an existing backend, you may need to disable the generation of `index.html` so that they generated assets can be used with another default document. To do so, the following can be added to `[vue.config.js](https://cli.vuejs.org/config/#vue-config-js)`:
387+
388+
When using Vue CLI with an existing backend, you may need to disable the generation of `index.html` so that they generated assets can be used with another default document. To do so, the following can be added to [`vue.config.js`](#vue-config-js):
385389

386390
``` js
387391
// vue.config.js
@@ -395,5 +399,5 @@ module.exports = {
395399
```
396400

397401
::: warning
398-
[Modern Mode](https://cli.vuejs.org/guide/browser-compatibility.html#modern-mode) will not work when the `html-webpack-plugin` is disabled.
402+
[Modern Mode](../guide/browser-compatibility.md#modern-mode) will not work when the `html-webpack-plugin` is disabled.
399403
:::

0 commit comments

Comments
 (0)