VueJs Boilerplate

Not mine! Doesn’t look like this has been shared here before:

Just need to figure out how to get dev-server running!

If you end up seeing this, huge thanks Nop33!

3 Likes

Cool! Below is how people usually get hot reload working, you need to load the DFINITY agent in the browser as it gets injected by the canister.

Then in his index he has this:

So if the environment is development then it calls createAgent. I think this is the cleanest approach I’ve seen.

Also please pay attention to his DFINITY agent version, I think the latest this works with is 0.6.13? After that there is an issue with the BLS wasm file not loading which Im not sure how to fix.

"@dfinity/agent": "0.6.13", is in my package.json

5 Likes

Thanks for sharing! Funny you replied, I was just looking at your AS CDK earlier!

Super cool stuff!!

3 Likes

Anyone has managed to run this template on dev-server ? Tried a lot of things but can’t get it working for the moment :frowning:

@anthonymq - I have a dev-server project I can share that I built before this.

Should be enough to get the above template working.

3 Likes

Thanks it helped !
Did you found a way to split your assets in chunks with webpack ? I’m worried I will hit the limit pretty soon and can’t get it working.

I suspect you can load them all using the canister apis. However, what I did was just disable generating the source map :\

1 Like