Skip to content
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

Relecture de plugins #15

Merged
merged 4 commits into from
Sep 20, 2017
Merged

Relecture de plugins #15

merged 4 commits into from
Sep 20, 2017

Conversation

MachinisteWeb
Copy link
Member

Et un autre


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.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sera inclus


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.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ont besoin"


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`.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"mis à true"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"connaitre"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"en train"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

connaitre pour la nouvelle graphie ?! :)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

connaitre pour la nouvelle graphie ?! :)

Oui exact, beaucoup de circonflexes disparaissent avec la nouvelle graphie.

Signed-off-by: Bruno Lesieur <[email protected]>
@MachinisteWeb
Copy link
Member Author

MachinisteWeb commented Sep 18, 2017

Merci @rspt ! J'ai précisé « propriété » pour justifier « mise à true »

@rspt
Copy link

rspt commented Sep 18, 2017

Merci @rspt ! J'ai précisé « propriété » pour justifié « mise à true »

Top pour moi du coup @haeresis

@MachinisteWeb MachinisteWeb merged commit effb22e into working Sep 20, 2017
@MachinisteWeb MachinisteWeb deleted the plugins branch September 20, 2017 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants