mirror of
https://github.com/symfony/recipes.git
synced 2026-09-14 08:36:27 +03:00
Currently if someones types "composer req ux" after a base symfony install ... he ends up with webpack encore.
Worse, the same thing happens if user installed symfony "--webapp", as they will end up with both AssetMapper and Webpack Encore installed.
Finally, and the initial reason I checked this: we will soon need the "ux" alias for the UX Bundle.
cc @Kocal
PS: not sure if this would require a release to be effective... and hope it does not 😅
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"bundles": {
|
|
"Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": ["all"]
|
|
},
|
|
"copy-from-recipe": {
|
|
"assets/": "assets/",
|
|
"config/": "%CONFIG_DIR%/",
|
|
"package.json": "package.json",
|
|
"webpack.config.js": "webpack.config.js"
|
|
},
|
|
"aliases": ["encore", "webpack", "webpack-encore"],
|
|
"gitignore": [
|
|
"/node_modules/",
|
|
"/%PUBLIC_DIR%/build/",
|
|
"npm-debug.log",
|
|
"yarn-error.log"
|
|
],
|
|
"conflict": {
|
|
"symfony/framework-bundle": "<5.4",
|
|
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
|
},
|
|
"add-lines": [
|
|
{
|
|
"file": "templates/base.html.twig",
|
|
"content": " {{ encore_entry_script_tags('app') }}",
|
|
"position": "after_target",
|
|
"target": "{% block javascripts %}",
|
|
"warn_if_missing": true
|
|
},
|
|
{
|
|
"file": "templates/base.html.twig",
|
|
"content": " {{ encore_entry_link_tags('app') }}",
|
|
"position": "after_target",
|
|
"target": "{% block stylesheets %}",
|
|
"warn_if_missing": true
|
|
}
|
|
]
|
|
}
|