19 ms·
Huh. I have actually been looking for precisely this --- I was going to go with the Guardian's Scribe, but I might investigate this instead. Unfortunately it l
by david-given 11y ago
Huh. I have actually been looking for precisely this --- I was going to go with the Guardian's Scribe, but I might investigate this instead.
Unfortunately it looks like it's JQuery and AMD modules, and I'm a Polymer and browserify shop, so it may just not be feasible. [sad face]
- yuchi 11y agoOld (veeeeeeery old) substance dev here. They are not AMD based (have a look here indeed https://github.com/substance/substance/blob/master/browser.js#L1 https://github.com/substance/substance/blob/master/browser.j...) and about jQuery I’m pretty sure you can wrap it up as a Web Component pretty easily.
- david-given 11y agoI've never actually used browser-side require, so have no idea how it works --- I just saw a boot.amd.js file. Also, did I say browserify? I meant vulcanize.
- _mql 11y agoHi! To clarify: Substance is compatible with Browserify and Webpack. It runs in Node and in the browser. It doesn't come as one big module, instead it lets you deep require individual files so your bundle only includes what you explicitly required. e.g. require('substance/collab/CollabServer'). I've deleted the amd.boot.js file as it's no longer supported.