Skip to content

Traduction de configuration-build.md #31

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 4 commits into from
Dec 8, 2017
Merged

Conversation

MachinisteWeb
Copy link
Member

@MachinisteWeb MachinisteWeb commented Nov 20, 2017

Début de la dernière étape, la configuration Nuxt. J'ai été assez vite, il y a p-e un peu plus de fautes que d'habitude.

Signed-off-by: Bruno Lesieur <[email protected]>
- Type: `boolean`
- Default: `true` for dev and `false` for production.
- Type : `boolean`
- Par défault : `true` en développement et `false` en production.
Copy link

Choose a reason for hiding this comment

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

"Par défaut"


> Customize bundle filenames
- Type : `Object`
- Par défault :
Copy link

Choose a reason for hiding this comment

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

"Par défaut"

`extend` est appelé deux fois, une fois pour le paquetage serveur et une fois pour le paquetage client. Les arguments de la méthode sont :

1. l'objet de configuration webpack,
2. un object avec les propriétés suivantes (toutes booléenes): `dev`, `isClient`, `isServer`.
Copy link

Choose a reason for hiding this comment

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

"un objet"

Copy link

Choose a reason for hiding this comment

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

"booléennes" non?

Copy link

Choose a reason for hiding this comment

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

@haeresis t'as oublié le "un objet", dans le point 2

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, j'avais pas compris, j'avais changé la première ligne.

Using extract-text-webpack-plugin to extract the CSS in the main chunk into a separate CSS file (auto injected with template),
which allows the file to be individually cached. This is recommended when there is a lot of shared CSS.
CSS inside async components will remain inlined as JavaScript strings and handled by vue-style-loader.
Utiliser `extract-text-webpack-plugin` pour extraire le CSS du fragment principale dans un fichier CSS séparé (injection automatique avec template), permet au fichier d'être mis en cache de manière individuel. Cela est recommandé quand il y a beaucoup de fichier CSS partagés. Les fichiers CSS à l'intérieur des composants asynchrones vont restés en place en tant que chaines de caractères JavaScript et prise en charge par `vue-style-loader`.
Copy link

Choose a reason for hiding this comment

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

"fragment principal"

Copy link

Choose a reason for hiding this comment

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

"beaucoup de fichiers"

Copy link

Choose a reason for hiding this comment

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

"vont rester"

**NOTE:** While default preset is OK and flexible enough for normal use cases, the recommended
usage by [vue-loader](https://vue-loader.vuejs.org/en/options.html#postcss) is using `postcss.config.js` file in your project.
By creating that file it will be automatically detected and this option is ignored.
**Note :** alors que l'usage par défaut est OK et assez flexible pour des cas d'utilisations normaux, l'utilisation recommandée par [`vue-loader`](https://vue-loader.vuejs.org/en/options.html#postcss) est d'uitiliser un fichier `postcss.config.js` dans votre projet. En créant ce fichier, il sera automatiquement détecté et les options seront ignorées.
Copy link

Choose a reason for hiding this comment

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

"est d'utiliser"

- Type : `Boolean`
- Par défaut : `true` for universal mode and `false` for spa mode

Cette option est automatiquement créer en se basant sur la valeur de `mode` si elle n'est pas fournie.
Copy link

Choose a reason for hiding this comment

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

"créée"


> Nuxt.js allows you provide your own templates which will be rendered based on nuxt configuration
This feature is specially useful for using with [modules](/guide/modules).
> Nuxt.js vous permet de fournir vos propres templates qui seront rendu en ce basant sur la configuration de Nuxt. Cette fonctionnalité est particulièrement utile quand utilisé avec [modules](/guide/modules).
Copy link

Choose a reason for hiding this comment

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

"seront rendus"

Copy link

Choose a reason for hiding this comment

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

"en se basant"

Copy link

Choose a reason for hiding this comment

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

"quand utilisée"

@@ -264,17 +266,15 @@ module.exports = {
}
```

Templates are rendered using [lodash.template](https://lodash.com/docs/#template)
you can learn more about using them [here](https://github.com/learn-co-students/javascript-lodash-templates-v-000).
Les templates sont rendu en utilisant [`lodash.template`](https://lodash.com/docs/#template). Vous pouvez en apprendre plus à propos de leur utilisation [ici](https://github.com/learn-co-students/javascript-lodash-templates-v-000).
Copy link

Choose a reason for hiding this comment

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

"sont rendus"

Signed-off-by: Bruno Lesieur <[email protected]>
Signed-off-by: Bruno Lesieur <[email protected]>
@MachinisteWeb MachinisteWeb merged commit d3f23b2 into working Dec 8, 2017
@MachinisteWeb MachinisteWeb deleted the configuration-build branch December 8, 2017 13:40
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.

2 participants