-
Notifications
You must be signed in to change notification settings - Fork 11
Traduction de configuration-css.md
#36
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
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
--- | ||
title: "API: The css Property" | ||
description: Nuxt.js lets you define the CSS files/modules/libraries you want to set globally (included in every page). | ||
title: "API : La propriété css" | ||
description: Nuxt.js vous permet de définir le fichier, la bibliothèque ou le module CSS que vous souhaiter définir globalement (inclue sur toutes les pages). | ||
--- | ||
|
||
# The css Property (En) | ||
# La propriété css | ||
|
||
> Nuxt.js lets you define the CSS files/modules/libraries you want to set globally (included in every page). | ||
> Nuxt.js vous permet de définir le fichier, la bibliothèque ou le module CSS que vous souhaiter définir globalement (inclue sur toutes les pages). | ||
|
||
<p style="width: 294px;position: fixed; top : 64px; right: 4px;" class="Alert Alert--orange"><strong>⚠Cette page est actuellement en cours de traduction française. Vous pouvez repasser plus tard ou <a href="https://github.com/vuejs-fr/nuxt" target="_blank">participer à la traduction</a> de celle-ci dès maintenant !</strong></p><p>In case you want to use ```sass``` make sure that you have installed ```node-sass``` and ```sass-loader``` packages. If you didn't just</p> | ||
Dans le cas où vous souhaiteriez utiliser ```sass```, assurez-vous d'avoir installer les packages ```node-sass``` et ```sass-loader```. Si non, utilisez cette commande : | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "installé" |
||
|
||
```sh | ||
npm install --save-dev node-sass sass-loader | ||
``` | ||
|
||
- Type: `Array` | ||
- Items: `String` | ||
- Type : `Array` | ||
- Éléments : `string` | ||
|
||
In `nuxt.config.js`, add the CSS resources: | ||
Dans `nuxt.config.js`, ajouter les ressources CSS : | ||
|
||
```js | ||
module.exports = { | ||
css: [ | ||
// Load a node module directly (here it's a SASS file) | ||
// Charge un module Node.js directement (ici un fichier Sass) | ||
'bulma', | ||
// CSS file in the project | ||
// fichier CSS dans le projet | ||
'@/assets/css/main.css', | ||
// SCSS file in the project | ||
// un fichier SCSS dans le projet | ||
'@/assets/css/main.scss' | ||
] | ||
} | ||
``` | ||
|
||
Nuxt.js will automatically guess the file type by it's extension and use the appropriate pre-processor loader for webpack. You will still need to install the required loader if you need to use them. | ||
Nuxt.js va automatiquement deviner le type de fichier grâce à son extension et utiliser l'adaptateur de préprocesseur approprié pour webpack. Vous devez toujours installer les adaptateurs requis si vous avez besoin de les utiliser. |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"vous souhaitez"