mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
|
"bundles": {
|
|
"Symfony\\UX\\Svelte\\SvelteBundle": ["all"]
|
|
},
|
|
"copy-from-recipe": {
|
|
"assets/": "assets/"
|
|
},
|
|
"conflict": {
|
|
"symfony/webpack-encore-bundle": "<2.0",
|
|
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
|
},
|
|
"add-lines": [
|
|
{
|
|
"file": "webpack.config.js",
|
|
"content": [
|
|
"",
|
|
" .enableSvelte()"
|
|
],
|
|
"position": "after_target",
|
|
"target": ".splitEntryChunks()"
|
|
},
|
|
{
|
|
"file": "assets/app.js",
|
|
"content": [
|
|
"import { registerSvelteControllerComponents } from '@symfony/ux-svelte';"
|
|
],
|
|
"position": "top",
|
|
"warn_if_missing": true
|
|
},
|
|
{
|
|
"file": "assets/app.js",
|
|
"content": [
|
|
"registerSvelteControllerComponents(require.context('./svelte/controllers', true, /\\.svelte$/));"
|
|
],
|
|
"position": "bottom",
|
|
"warn_if_missing": true,
|
|
"requires": "symfony/webpack-encore-bundle"
|
|
},
|
|
{
|
|
"file": "assets/app.js",
|
|
"content": [
|
|
"registerSvelteControllerComponents();"
|
|
],
|
|
"position": "bottom",
|
|
"warn_if_missing": true,
|
|
"requires": "symfony/asset-mapper"
|
|
}
|
|
]
|
|
}
|