Skip to content

Add explicit version to download links #674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pre-deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Promise.all([
installation
.replace(/vue_version: .*/, 'vue_version: ' + version)
.replace(/gz_size:.*/g, `gz_size: "${prodSize}"`)
.replace(/\/vue@[\d\.]+\//g, `/vue@${version}/`)
)
console.log(`\nSuccessfully updated Vue version and gzip file size.\n`)
}).catch(err => {
Expand Down
15 changes: 12 additions & 3 deletions src/v2/guide/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: インストール
updated: 2018-01-17
updated: 2018-01-30
type: guide
order: 1
vue_version: 2.5.13
Expand Down Expand Up @@ -35,9 +35,18 @@ Vue を使用する場合は、ブラウザに [Vue Devtools](https://github.com

### CDN

推奨: [https://cdn.jsdelivr.net/npm/vue](https://cdn.jsdelivr.net/npm/vue) は、npm に公開されるとすぐに最新バージョンが反映されます。[https://cdn.jsdelivr.net/npm/vue/](https://cdn.jsdelivr.net/npm/vue/) では npm パッケージのソースも確認することができます。
手動で更新できる特定のバージョン番号にリンクすることをお勧めします:

[unpkg](https://unpkg.com/vue) または [cdnjs](https://cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.js) 上でも利用可能です。(cdnjs は同期に少し時間がかかるため、最新版ではない可能性があります)。
``` html
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.js"></script>
```

[cdn.jsdelivr.net/npm/vue](https://cdn.jsdelivr.net/npm/vue/) で NPM パッケージのソースを参照することができます。


Vue は [unpkg](https://unpkg.com/vue@{{vue_version}}/dist/vue.js) または [cdnjs](https://cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.js) 上でも利用可能です(cdnjs は同期に少し時間がかかるため、最新版ではない可能性があります)。

[Vue のさまざまなビルドについて](#さまざまなビルドについて)を読み、公開されたサイトでは**本番バージョン**を使用し、`vue.js` を `vue.min.js` に置き換えてください。これは開発体験の代わりにスピードのために最適化された小さなビルドです。

## NPM

Expand Down