Closed joshuahhh closed 8 years ago
Cool. Let me mention considerations with the build process:
react.js
and react.min.js
in that thirdparty
folder because I wanted to be able to easily switch between using one or the other. react.js
is good when you need to see the React warnings, but react.min.js
has significantly different performance characteristics, in my experience, so I often want to be using this version if I'm trying to figure out performance aspects of Apparatus.vendor.js
thing. This helps, I think, but it's still slow. I think ideally it would build within 0.5s of changing a file in src
. Maybe a newer version of watchify is faster?index.html
, dist
, thirdparty
, and then also codemirror from node_modules
, because the css makes a reference to this. That last one is clearly annoying.So, I had actually planned to get rid of vendor.js
, and just put all the third party libraries in thirdparty
and have index.html
reference those. That seemed like the easiest way to satisfy the above three considerations. But I don't really care what build process we use as long as the above considerations are addressed.
This was easy to do, and it helps for compatibility with external React components we might want to add, so let's do it! I poked around, and Apparatus still seems to work, so that's good. I eliminated all console errors / warnings I found. Please take a look!
Notes:
thirdparty
directory, since I think React is already being included viavendor.js
, but please take a look at that.<body />
, since third-party extensions sometimes mess with<body />
. Hopefully my change toindex.html
is OK?