From 921fab47fdf6faea01669f9c743edc6a024405af Mon Sep 17 00:00:00 2001 From: Alexander Sokolov Date: Fri, 13 Jul 2018 23:23:45 +0300 Subject: [PATCH] Update README.md --- docs/config/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/config/README.md b/docs/config/README.md index 2d11073c89..8bafdfda91 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -350,9 +350,10 @@ See [@vue/cli-plugin-e2e-cypress](https://github.com/vuejs/vue-cli/tree/dev/pack See [@vue/cli-plugin-e2e-nightwatch](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-nightwatch) for more details. ## Example Configurations + ### Disable Hashed Filenames -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)`: +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): ``` js // vue.config.js @@ -377,11 +378,14 @@ module.exports = { }, }; ``` + ::: tip When manually overwriting `filename` or `chunkFilename`, `assetsDir` does not need to be included in their path values. ::: + ### Disable Generating index.html -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)`: + +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): ``` js // vue.config.js @@ -395,5 +399,5 @@ module.exports = { ``` ::: warning -[Modern Mode](https://cli.vuejs.org/guide/browser-compatibility.html#modern-mode) will not work when the `html-webpack-plugin` is disabled. +[Modern Mode](../guide/browser-compatibility.md#modern-mode) will not work when the `html-webpack-plugin` is disabled. :::