thecommons-urbit / chess

Distribution repo for Urbit Chess app
Other
24 stars 8 forks source link

master: cherry-pick migration from Webapck to Vite #168

Closed ashelkovnykov closed 4 months ago

brbenji commented 4 months ago

Vite works but no graphics

README Development Section

Since I haven’t built %chess in a long time, I basically started from scratch and relied on the README instructions. So I have way more notes on that.

Vite

I was able to get vite to work. It required running npm install vite and within ../src/frontend running npm install to get all the packages. The instructions should probably include these commands.

But for the missing graphics, I don't really know what's getting disconnected. I checked in /node_modules for /chessground/assets. Both the chessground.brown.css and the chessground.cburnett.css are still in there. Those define the svgs in base64.

So I'm not really sure what's wrong.
Screen Shot 2024-04-19 at 7 41 33 AM
The Vite dev thingy has the same problem. Screen Shot 2024-04-19 at 8 21 55 AM

ashelkovnykov commented 4 months ago

@brbenji Very odd - I'm going to close this PR and confirm this in the new chess-ui repo.