still icon indicating copy to clipboard operation
still copied to clipboard

Oficial integration with a build tool from NodeJS

Open gabrielpoca opened this issue 4 years ago • 3 comments

It's time to think about how we will integrate with something like Webpack, Parcel, Snowpack, or something else. I only have experience with Webpack and Parcel, but I'm open to using something else.

There are too many ways to set up this integration, but I think that a good first version would be to have Still manage HTML where we include files generated by Webpack (for instance). The idea would be to bypass our compilation chain completely and have Webpack running under one of our supervision trees. We still need a way for Webpack to inform still of which files to include. It's also important that it works with a dev server.

gabrielpoca avatar Feb 27 '21 17:02 gabrielpoca

A potential quickfix (or first version) would be to just link to an app.js file and have said tool generate that. The issue is that we would fail including it right now, since it doesn't exist. To bypass this we could maybe support URLs? So instead of linking locally, use the base URL.

frm avatar Mar 01 '21 10:03 frm

the issue is that you don't want app.js, you want something like app-jasldfjlskjfla.js because we need the fingerprint right?

gabrielpoca avatar Mar 01 '21 15:03 gabrielpoca

Yes, absolutely. what I meant was as a first take on this.

frm avatar Mar 01 '21 20:03 frm