eleventy-plugin-vue icon indicating copy to clipboard operation
eleventy-plugin-vue copied to clipboard

Configure `Vue.config` through plugin options

Open ovlb opened this issue 3 years ago • 2 comments

In 1.0 we can merge rollupOptions. It would be nice to also merge options of the Vue config.

11ty Vue already uses globalProperties (source).

As far as I can see this there is no way to do this via Rollup and the Vue config is not exposed?

I hope that this will allow me to add web components that should be ignored by Vue/11ty to be used in the client. If there are other ways to achieve this, I’m all ears.

ovlb avatar Jan 08 '22 00:01 ovlb

i dont know what you need to do,
but i was just looking over the package,
and i was wondering if you could use this somehow?

wommy avatar Jan 22 '22 00:01 wommy

@wommy I already use this to change how the app gets compiled. Nonetheless, the Vue app config is a step before this. It gives Vue additional context. E.g. sets global prop (as linked in the OP, Eleventy’s this.page is made accessible to the Vue components). Another use case I’ve found where a deeper level of access to the setup of the Vue app is useful are global components.

In short: controlling the output is wonderful, but having better control of the input will be marvellous.

ovlb avatar Jan 22 '22 11:01 ovlb