mirror of
https://github.com/symfony/recipes.git
synced 2026-09-14 16:46:24 +03:00
* Adding new recipes for Encore, Stimulus & AssetMapper * StimulusBundle 1.0 -> 2.9 * updating namespace * moving encore recipe changes to 2.0 * conflict with older version of flex * adding ux_controller_link_tags() to recipe * adding documentation to importmap * updating message to match core * Adding ux translator * fixing translations path * Documenting the new add-lines configurator * Fixing translator initial version * shorten to just var * remove ux alias - there is no one package to install UX packages currently * fixing wrong package name
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": ["ux", "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
|
|
}
|
|
]
|
|
}
|