Skip to content

Commit 3e876a7

Browse files
docs: add self hosting Vue as an option in the installation guide (#923)
1 parent 64f9be3 commit 3e876a7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/guide/installation.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
Vue.js is built by design to be incrementally adoptable. This means that it can be integrated into a project multiple ways depending on the requirements.
44

5-
There are three primary ways of adding Vue.js to a project:
5+
There are four primary ways of adding Vue.js to a project:
66

77
1. Import it as a [CDN package](#cdn) on the page
8-
2. Install it using [npm](#npm)
9-
3. Use the official [CLI](#cli) to scaffold a project, which provides batteries-included build setups for a modern frontend workflow (e.g., hot-reload, lint-on-save, and much more)
8+
2. Download the JavaScript files and [host them yourself](#download-and-self-host)
9+
3. Install it using [npm](#npm)
10+
4. Use the official [CLI](#cli) to scaffold a project, which provides batteries-included build setups for a modern frontend workflow (e.g., hot-reload, lint-on-save, and much more)
1011

1112
## Release Notes
1213

@@ -36,6 +37,12 @@ For prototyping or learning purposes, you can use the latest version with:
3637

3738
For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions.
3839

40+
## Download and Self Host
41+
42+
If you want to avoid using build tools but can't use a CDN in production then you can download the relevant `.js` file and host it using your own web server. You can then include it using a `<script>` tag, just like with the CDN approach.
43+
44+
The files can be browsed and downloaded from a CDN such as [unpkg](https://unpkg.com/browse/vue@next/dist/) or [jsDelivr](https://cdn.jsdelivr.net/npm/vue@next/dist/). The various different files are [explained later](#explanation-of-different-builds) but you would typically want to download both a development build and a production build.
45+
3946
## npm
4047

4148
npm is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as [Webpack](https://webpack.js.org/) or [Rollup](https://rollupjs.org/). Vue also provides accompanying tools for authoring [Single File Components](../guide/single-file-component.html).

0 commit comments

Comments
 (0)