Electron Vite

It loads at least.
E
Ethaks655d ago
Okay, in vite.config.js:
root: ".",
base: "/foundryDev/systems/pf1/",
publicDir: resolve("public"),
server: {
port: 30001,
open: true,
proxy: {
"^(?!/foundryDev/systems/pf1)": "http://localhost:30000/",
"/foundryDev/socket.io": {
target: "ws://localhost:30000",
root: ".",
base: "/foundryDev/systems/pf1/",
publicDir: resolve("public"),
server: {
port: 30001,
open: true,
proxy: {
"^(?!/foundryDev/systems/pf1)": "http://localhost:30000/",
"/foundryDev/socket.io": {
target: "ws://localhost:30000",
M
Mana655d ago
Was just doing those on my own :p
E
Ethaks655d ago
The console should then have an entry [vite] connected. Somewhere at the top, a little below the Foundry logo
M
Mana655d ago
It's there, yeah.
E
Ethaks655d ago
Or at least a [vite] connecting... almost at the top of the log. Looks like the template reloading suffers when a routePrefix is added though
M
Mana655d ago
If it fails to detect the prefix, then yeah, it wouldn't find things correctly.
E
Ethaks655d ago
Since it relies on base, which should not include the routePrefix within Foundry. Welp, that I can work with though.
M
Mana655d ago
The page launched by the serve command in browser also lacks the prefix, so it kinda just splats on 404 or similar.
E
Ethaks655d ago
The whole setup is absolutely not built with a routePrefix in mind 😄
M
Mana655d ago
Not that I ever use that, since it launches firefox for me, which is there just to not mess my tabs in the browser I actually use.
E
Ethaks655d ago
This will require some tinkering, but I think adding an option to foundryconfig.json and then handling base and its dependants accordingly should be quite possible.
M
Mana655d ago
While at it, could you add option to not open it in a browser?
E
Ethaks655d ago
Yep, might as well I added routePrefix handling to the lang-reload branch as that one already included some tooling changes. It should now be possible to have a foundryconfig.json file like
{
"routePrefix": "foundryDev"
}
{
"routePrefix": "foundryDev"
}
and get a working Vite development server including template hot reloading. openBrowser is a boolean option, but I set the default to false so you should not need to manually set it.
Want results from more Discord servers?
Add your server
More Posts
early v10 compat testing@dnd5e - No action required Work is being done on fixing the core system compatibility with v10 in module.json helpYou have no manifest or download fields.TyphonJS Runtime Library - RC 0.0.12The TyphonJS Runtime Library / TRL release candidate version 0.0.12 is now available. This is a massCypress FunYeah, unfortunately it ain't that simple 😅 Cypress, like you say, automatically retries things, andpreUpdateHook questionHey all, question for anyone who has a sec. I'm trying to use `preCreateActor` to add rolled values spitballing about jest mocksok. ok. ok. pure spitballing theory here. All the client side source exists in esmodule form (hopef1.6.1 testing@dnd5e Testing Action Requested but not required. version 1.6.1 is a bugfix version, it's pretty clconversion macro@max.pat did you have a macro or script which could change the old classFeatures data into advancemeAC calc changesI do not believe the data for AC actually changed, only the way it is calculated. evidence: no chang1.6.0 Custom Sheet ChangesLooking at the changes made which are breaking for custom sheets. Gonna make a thread for this.1.6.0 testingCommunity Testing Requests: For those of you interested in helping to QA this branch, I'll put togeHook documentationdnd5e Hook Documentation: https://gitlab.com/foundrynet/dnd5e/-/wikis/HooksTyphonJS Runtime Library v0.0.9 - Release CandidateAlrighty! The TyphonJS Runtime Library (TRL) v0.0.9 is out... In the last 2 weeks+ I have done massi1.6.0 - 82%@dnd5e - **No action Required** The 1.6.0 milestone is at 82% completion https://gitlab.com/foundryadvancement consumptionnow that I brought that up on #progress-reports @calego , could I maybe pester you later for some adAlternative Alignment System D&D5eWow, that is a really powerful way to codify alignment. I like it! Do you have any ideas as to how iconsumables chat data@Zhell > So that's odd. How come consumables work different and all other item types get a non-funcilthid stop dragActually, would it be possible to modify the core function that allows people to click and drag toke1.6.x mid-milestone update@dnd5e - **No Action Required** Milestone 1.6.0 is 69% Complete (_nice_) <https://gitlab.com/foundPlugin ContributorsI'm very proud to be the maintainer of a module (Export Sheet to PDF) that is getting many, many con