-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(ja): translate configuration-vue-config (#1000)
* docs(ja): add original * docs(ja): translate configuration-vue-config Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>
- Loading branch information
1 parent
c435ba2
commit 43dfc5e
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
content/ja/guides/configuration-glossary/configuration-vue-config.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: 'vue.config プロパティ' | ||
description: 'Vue.config の構成オブジェクト' | ||
menu: vue.config | ||
category: configuration-glossary | ||
position: 32 | ||
--- | ||
|
||
- 型: `Object` | ||
- デフォルト: `{ silent: !isDev, performance: isDev }` | ||
|
||
> vue.config プロパティは `Vue.config` 用に直接設定できる橋渡しを提供します。 | ||
**例** | ||
|
||
```js{}[nuxt.config.js] | ||
export default { | ||
vue: { | ||
config: { | ||
productionTip: true, | ||
devtools: false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
この設定により次の Vue.config が作成されます: | ||
|
||
```js | ||
Vue.config.productionTip // true | ||
Vue.config.devtools // false | ||
Vue.config.silent // !isDev(デフォルト値) | ||
Vue.config.performance // isDev(デフォルト値) | ||
``` | ||
|
||
`Vue.config` API の詳細については[公式の Vue のドキュメント](https://jp.vuejs.org/v2/api/index.html#%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%E8%A8%AD%E5%AE%9A)を参照してください。 |