* Edited Dockerfile of Docker(Nginx) deployment doc
Edited `Dockerfile` section of https://cli.vuejs.org/guide/deployment.html#docker-nginx
As shown in [Vue v2 cookbook](https://vuejs.org/v2/cookbook/dockerize-vuejs-app.html) copying `package*.json` initially and running `npm install` in a separate step allows caching and reduces time elapsed during Docker build. Also the difference between the two docs will be reduced and be less confusing to those who end up with both of them.
* node version to latest
(cherry picked from commit 69f7145b02)
* Minor typo fix for CLI Service docs page
In the last paragraph of the CLI Service docs page the second instance of the word 'need' should be changed to 'needs'.
* Typo fix to 'HTML and Static Assets' docs page
(cherry picked from commit b20e27ad12)
closes#4376
Since css-loader v3, custom CSS Modules configurations are under the
`modules` field. So when a user customizes these configurations, the `modules`
feature is automatically enabled for all css files.
So we must require the user's explicit consensus or disagreement on whether
these rules apply to all CSS files or not.
* Update mode-and-env.md
Fixed example of keys, which they should start with VUE_APP_
* Update mode-and-env.md
change position of the tip
* Update docs/guide/mode-and-env.md
Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com>
(cherry picked from commit 149b307f72)
It appears that .env files are only loaded at the start of `vue-cli-service` and are not watched for hot reloads.
**I am actually not sure this is the case for everyone, but is so for me.**
I think it is worth noting because the expectation is that a file at the root of the project would be watched for hot reloads.
(cherry picked from commit b22bedbf94)
* Updated for Zeit Now V2
* Fixed styling issue
* Added additional hint for router mode set to history
* Update docs/guide/deployment.md
Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com>
(cherry picked from commit 55dc287936)
* refactor: move router to its own plugin
* refactor: rename routerHistoryMode option to historyMode
* test: add @vue/cli-plugin-router tests
* feat: change src/router.js for most common use cases
* fix: fix cli-ui tests
* docs: Remove router root option from docs
* fix: add support for legacy router option