Electron-vue: How To: Build extensible app ?

Created on 12 Oct 2017  路  4Comments  路  Source: SimulatedGREG/electron-vue

Hi,

I'm trying to figure it out how to make my app extensible.

I understand that export sub components from a single-file component is not possible.
(named exports are not supported in *.vue files says vue-loader)

So, what is the best way to expose my app's internal components to be extended by others ?
Could it be done from /src/renderer/main.js ?

Thank you for your help.

question

Most helpful comment

I would like to provide a way for one to develop his own extension/plugin for my application.
This extension/plugin needs to be loaded at runtime

If you have any suggestion how to do this in a electron/vue way

All 4 comments

I'm not entirely sure what your asking, but if vue-loader doesn't support it, then I'm not sure how much further this boilerplate could take you.

I would like to provide a way for one to develop his own extension/plugin for my application.
This extension/plugin needs to be loaded at runtime

If you have any suggestion how to do this in a electron/vue way

https://github.com/zeit/hyper has such plugin system.

There isn't really a specific way to accomplish this with Vue. Remember everything is always JS in the end. Closing this as it isn't a direct issue with electron-vue. Feel free to continue discussing, but like @develar mentioned, I would also take a look at what they are doing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rodrigomata picture rodrigomata  路  3Comments

okwangyu picture okwangyu  路  3Comments

simonwjackson picture simonwjackson  路  3Comments

kinoli picture kinoli  路  3Comments

simdax picture simdax  路  3Comments