Skip to content

Commit f1afb2f

Browse files
skirtles-codenaokie
authored andcommitted
docs: add self hosting Vue as an option in the installation guide (#923)
1 parent c131d9a commit f1afb2f

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
## リリースノート
1213

@@ -36,6 +37,12 @@ Vue を使用する場合は、ブラウザに [Vue Devtools](https://github.com
3637

3738
本番環境では、新しいバージョンによる意図しない不具合を避けるため、特定のバージョン番号とビルド番号にリンクすることをお勧めします。
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
Vue による大規模アプリケーションを構築するときには、npm を利用したインストールを推奨します。[Webpack](https://webpack.js.org/) または [Rollup](https://rollupjs.org/) のようなモジュールバンドラーとうまく組み合わせることができます。Vue は[単一ファイルコンポーネント](../guide/single-file-component.html)を作成するための、付随するツールも提供しています。

0 commit comments

Comments
 (0)