4

I am new to Webpack module bundler. I am making a simple application in AngularJS with Webpack.

My application is running properly by executing command npm start which runs in development mode.

Now I want to deploy it on tomcat server. But, when I searched on internet, everyone is saying execute command npm run deploy to deploy. (Source: link)

Is there any way to deploy webpack application on tomcat server?

1 Answer 1

1

If you want to use webpack with tomcat the simplest way is probably to use webpack to create the packed .js file and then serve that out of tomcat.

With the setup described on the page you reference you will grab the dist/bundle.js file and have tomcat serve that. Alternatively, you could use something like gulp-webpack to produce the bundled file for you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.