Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
prog:symfony:extensions:webpack [11/09/2022 17:30] thierry [Installation] |
prog:symfony:extensions:webpack [11/09/2022 18:53] (Version actuelle) thierry [Sources & Ressources] |
||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
===== Installation ===== | ===== Installation ===== | ||
==== Résumé ==== | ==== Résumé ==== | ||
- | - ''composer require symfony/webpack-encore-bundle'' | + | - ''symfony composer req encore'' |
- ''npm install'' | - ''npm install'' | ||
==== Détails ==== | ==== Détails ==== | ||
- | + | avec la commande ''symfony composer req encore''\\ | |
- | + | Un fichier ''webpack.config.js'' est créé dans le répertoire du projet. | |
- | avec la commande ''composer require symfony/webpack-encore-bundle'' | + | <code bash>>symfony composer req encore |
- | <code bash> | + | Info from https://repo.packagist.org |
- | >composer require symfony/webpack-encore-bundle | + | |
- | Info from https://repo.packagist.org: | + | |
Using version ^1.15 for symfony/webpack-encore-bundle | Using version ^1.15 for symfony/webpack-encore-bundle | ||
./composer.json has been updated | ./composer.json has been updated | ||
Ligne 27: | Ligne 25: | ||
- Installing symfony/webpack-encore-bundle (v1.15.1): Extracting archive | - Installing symfony/webpack-encore-bundle (v1.15.1): Extracting archive | ||
Generating optimized autoload files | Generating optimized autoload files | ||
- | 31 packages you are using are looking for funding. | + | 36 packages you are using are looking for funding. |
Use the `composer fund` command to find out more! | Use the `composer fund` command to find out more! | ||
- | Symfony operations: 1 recipe (4fd206762f65e87c3499983900d785bb) | + | Symfony operations: 1 recipe (c1dccbeadbd089260073e199ecaca575) |
- Configuring symfony/webpack-encore-bundle (>=1.10): From github.com/symfony/recipes:main | - Configuring symfony/webpack-encore-bundle (>=1.10): From github.com/symfony/recipes:main | ||
Executing script cache:clear [OK] | Executing script cache:clear [OK] | ||
Executing script assets:install public [OK] | Executing script assets:install public [OK] | ||
- | What's next? | + | What's next? |
Ligne 49: | Ligne 47: | ||
No security vulnerability advisories found | No security vulnerability advisories found | ||
</code> | </code> | ||
+ | |||
+ | Ensuite on tape la commande ''npm install'' pour installer les modules de **node** nécessaire dans le répértoire ''node_modules'' | ||
+ | <code bash> | ||
+ | J:\webprojects\GoldenTicket>npm install | ||
+ | npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility | ||
+ | |||
+ | added 620 packages, and audited 621 packages in 1m | ||
+ | |||
+ | 66 packages are looking for funding | ||
+ | run `npm fund` for details | ||
+ | |||
+ | found 0 vulnerabilities | ||
+ | </code> | ||
+ | ====== Sources & Ressources ====== | ||
+ | * [[https://symfony.com/doc/current/the-fast-track/fr/22-encore.html]] | ||
+ | |||