You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/cli-service.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ npx vue-cli-service help [command]
126
126
127
127
## Skipping Plugins
128
128
129
-
Sometimes, you may want to not use a certain CLI Plugin when running a command. For example you might want to build a version of your app that doesn't include the PWA plugin. You can do that by passing the name of the plugin to the `--skip-plugins` option.
129
+
You can exclude specific plugins when running a commandby passing the name of the plugin to the `--skip-plugins` option:
Copy file name to clipboardExpand all lines: docs/guide/deployment.md
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -169,15 +169,31 @@ Commit both the `.gitlab-ci.yml` and `vue.config.js` files before pushing to you
169
169
170
170
Also checkout [vue-cli-plugin-netlify-lambda](https://github.com/netlify/vue-cli-plugin-netlify-lambda).
171
171
172
-
In order to receive direct hits using `history mode` on Vue Router, you need to create a file called `_redirects` under `/public` with the following content:
172
+
#### Use history mode on Vue Router
173
+
174
+
In order to receive direct hits using `history mode` on Vue Router, you need to redirect all trafic to the `/index.html` file.
175
+
176
+
> More information on [Netlify redirects documentation](https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps).
177
+
178
+
##### Recomended method
179
+
180
+
Create a file called `netlify.toml` in the root of your repository with the following content:
181
+
182
+
```toml
183
+
[[redirects]]
184
+
from = "/*"
185
+
to = "/index.html"
186
+
status = 200
187
+
```
188
+
189
+
##### Alternative method
190
+
Create a file called `_redirects` under `/public` with the following content:
173
191
174
192
```
175
193
# Netlify settings for single-page application
176
194
/* /index.html 200
177
195
```
178
196
179
-
More information on [Netlify redirects documentation](https://www.netlify.com/docs/redirects/#history-pushstate-and-single-page-apps).
180
-
181
197
If you are using [@vue/cli-plugin-pwa](https://cli.vuejs.org/core-plugins/pwa.html#vue-cli-plugin-pwa) make sure to exclude the `_redirects` file from being cached by the service worker.
182
198
To do so, add the following to your `vue.config.js`:
0 commit comments