Merged
Conversation
Update configuration.md
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
atinux
approved these changes
Sep 18, 2017
rspt
suggested changes
Sep 18, 2017
en/guide/plugins.md
Outdated
| Pour en savoir plus sur l'attribut `plugins`, consultez [La propriété `plugins`](/api/configuration-plugins) de l'API. | ||
|
|
||
| Actually, `vue-notifications` will be included in the app bundle, but because it's a library, we want to include it in the vendor bundle for better caching. | ||
| Acutellement, `vue-notifications` sera inclu dans le paquetage de l'application. Mais comme il s'agit d'une bibliothèque, nous voulons l'inclure dans le paquetage `vendor` pour une meilleure mise en cache. |
en/guide/plugins.md
Outdated
| ## Injection dans $root et context | ||
|
|
||
| Some plugins need to be injected in the App root to be used, like [vue-18n](https://github.com/kazupon/vue-i18n). Nuxt.js gives you the possibility to export a function in your plugin to receives the root component but also the context. | ||
| Plusieurs plugins on besoin d'être injectés à la racine de l'application pour être utilisés, comme [vue-18n](https://github.com/kazupon/vue-i18n). Nuxt.js vous donne la possibilité d'exporter une fonction dans votre plugin pour recevoir l'instance racine ainsi que le contexte. |
en/guide/plugins.md
Outdated
| Dans le cas où vous devez importer certaines bibliothèques uniquement pour le serveur, vous pouvez utiliser la variable `process.server` définie sur `true` lorsque le serveur web crée le fichier `server.bundle.js`. | ||
|
|
||
| Also, if you need to know if you are inside a generated app (via `nuxt generate`), you can check `process.static`, set to `true` during generation and after. To know the state when a page is being server-rendered by `nuxt generate` before being saved, you can use `process.static && process.server`. | ||
| Si vous avez besoin également de savoir si vous êtes dans une application générée (via `nuxt generate`), vous pouvez vérifier `process.static` mise à `true` pendant la génération et après. Pour connaître dans quel état est une page qui est entrain d'être rendue par `nuxt generate` avant d'être sauvée, vous pouvez utilisez `process.static && process.server`. |
Member
Author
There was a problem hiding this comment.
connaitre pour la nouvelle graphie ?! :)
There was a problem hiding this comment.
connaitre pour la nouvelle graphie ?! :)
Oui exact, beaucoup de circonflexes disparaissent avec la nouvelle graphie.
Member
Author
|
Merci @rspt ! J'ai précisé « propriété » pour justifier « mise à |
rspt
approved these changes
Sep 18, 2017
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Et un autre