Repository navigation
feat(template): add vite template - #3071
Conversation
There was a problem hiding this comment.
Left a few initial comments, but the overall approach looks good to me! Thanks so much for doing this work! 🙇♀️
To answer #2:
I think more configuration should be left to the user to implement in vite.config.xxx rather than integrated in the template.
I'm fine with this approach, especially for more experienced Vite users, it will allow them more customization options. We can always make the template more or less opinionated in later drafts.
erickzhao
left a comment
There was a problem hiding this comment.
not sure if the design of VitePluginConfig makes sense, it references WebpackPluginConfig.
In my opinion, the WebpackPluginConfig design could use some improvement. For example, why are config.mainConfig and config.renderer.config named that way? It's not very intuitive.
I think more configuration should be left to the user to implement in vite.config.xxx rather than integrated in the template.
I think this is a good initial approach. We can always add more Forge-specific configuration if needed.
|
I removed the We're thinking of removing it in the long term now that Draft PRs are a builtin GitHub feature. |
|
@caoxiemeihao can you rebase with the latest |
|
@erickzhao Yep! Good night! |
|
#3071 (comment) |
|
@caoxiemeihao |
|
How to use 'yarn make' without copy source code? @caoxiemeihao |
6f68476 to
ed62ab2
Compare
|
Hiya 👋 |
|
@warrenbuckley we're hopefully looking to getting this PR merged soon. Currently going through the code review process. |
Awesome, can't wait for this! Also, there should be a TypeScript option. |
Co-authored-by: Black-Hole <[email protected]>
Co-authored-by: Black-Hole <[email protected]>
Co-authored-by: Black-Hole <[email protected]>
Co-authored-by: Black-Hole <[email protected]>
Co-authored-by: Black-Hole <[email protected]>
This comment was marked as off-topic.
This comment was marked as off-topic.
|
I think CI is failing we bumped the version up to 6.1.0, but it should be aligned with the rest of the monorepo package versions ( The version number will be automatically bumped by Lerna during the publishing process! |
BlackHole1
left a comment
There was a problem hiding this comment.
LGTM. Thanks, @caoxiemeihao!
chore: update lockfile
|
Any hope to see this officially released soon? Very eager to give it a try :] |




Addresses #2954
Summarize your changes:
Support
--template=vite:)Hi! here. 👋
@erickzhao @VerteDinde
Some additional help is needed here.
VitePluginConfigmakes sense, it referencesWebpackPluginConfig.vite.config.xxxrather than integrated in the template.@electron-forge/plugin-viteneeds to write test code