diff --git a/symfony/ux-vue/2.9/manifest.json b/symfony/ux-vue/2.9/manifest.json index 2682a6221..fbbef853c 100644 --- a/symfony/ux-vue/2.9/manifest.json +++ b/symfony/ux-vue/2.9/manifest.json @@ -29,6 +29,27 @@ "warn_if_missing": true, "requires": "symfony/webpack-encore-bundle" }, + { + "file": "assets/app.js", + "content": "// If you prefer to lazy-load your Vue.js controller components, in order to reduce the JavaScript bundle the smallest as possible", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/webpack-encore-bundle" + }, + { + "file": "assets/app.js", + "content": "// and degrade performances as little as possible, you can use the following line instead:", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/webpack-encore-bundle" + }, + { + "file": "assets/app.js", + "content": "registerVueControllerComponents(require.context('./vue/controllers', true, /\\.vue$/, 'lazy'));", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/webpack-encore-bundle" + }, { "file": "assets/app.js", "content": "registerVueControllerComponents();",