C
C
Chingiz Mammadov2018-12-30 22:18:06
Software Deployment
Chingiz Mammadov, 2018-12-30 22:18:06

How to transfer an application built on webpack to hosting?

Good day to all.
For the sake of clarity, I'll go into more detail.
I decided to learn Reactjs, but in order not to waste time, I started with create-react-app.
Then, for personal moral satisfaction, I decided to learn and do it myself.
I've been fiddling with webpack for a few weeks now. Installed webpack and babel, everything works, it gets packed into the bundle.
But I can't understand.
For production, what should I do?
There is a separate team that collects all this stuff for production or a plugin that needs to be installed. Explain the moment please.
I know there are a lot of video tutorials, articles and tutorials on webpack, but either I don't notice how I miss this point, or I don't understand in general.
All guides and lessons until the moment when everything worked, and no one shows how to then upload all this to the hosting. To everyone who helps, in advance, many thanks!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Yudin, 2018-12-30
@ChingizMuellim

Everything about this is written in the documentation:
https://webpack.js.org/guides/production/
But it is more clearly described here:
https://habr.com/post/324232/
And the second part:
https://habr.com /post/324388/
In a nutshell, then call webpack -p(minus p tells webpack: generate a real bundle.js file and what else you specify) and put the finished file (s) on your server / hosting, etc. There is already at least apache, at least nginx, at least anything distributing statics.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question