sounds more like a job for a tool like NextJs. Doing it with webpack will be probably doable - the is plenty of loaders etc. but I'm afraid you will get to uncharted territory pretty fast.
actually I am using fetch to connect to the url which links to a MS-SQL database. It's a large db and the site I am converting from a Delphi based program to a microservice.
For me it sounds you are more in static page generation area, and less in the JS applications where webpack thrives.
You can consider:
writing a script to load the existing content, to include it in the new repository. Downside - you will replace DB with static files in the repo. This will change the workflow with content authoring. Once you have content locally, you will need to figure out importing it with wepback
use similar script, but on the build time. So data will live where you have it now, and each build will reload it's current state
write an application that loads data dynamically, from the browser
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
sounds more like a job for a tool like NextJs. Doing it with webpack will be probably doable - the is plenty of loaders etc. but I'm afraid you will get to uncharted territory pretty fast.
I am a plain vanilla user so I don't think NextJs is my cup of tea.
What DB you want to connect to? Is it something that could be replaced with flat MD or text files in the repo?
actually I am using fetch to connect to the url which links to a MS-SQL database. It's a large db and the site I am converting from a Delphi based program to a microservice.
For me it sounds you are more in static page generation area, and less in the JS applications where webpack thrives.
You can consider: