Script for running a webpack build on localhost

Hey, I’m new around.

I wanted to ask a question and see if anyone knew.

I am currently working on shifting a project, it was originally react code built by webpack and run through spring boot in tomcat. I am changing it to be a pure npm/webpack/react app by trying to script it for localhost running.

I have a build.js and an index.html in resources after my webpack build. How do I write a script in my package.json to start these?


Welcome! One thing you can do is look at create-react-app and see how they have their package.json defined :slight_smile:

I’ve been looking through that and other seeds, so far the start scripts have only run the webpack dev server not the actually built code I have.

Most of these seeds use react-scripts with require you to have your environment set up in a certain way.