S
S
Sergey Nikonorov2018-12-27 23:29:08
Nginx
Sergey Nikonorov, 2018-12-27 23:29:08

How to optimize frontend build in Wordpress Multisite network?

I don't know how to properly approach the issue.
There is a network on WordPress. There are several user services in the network united by a single style design. More precisely, this is one site, but large parts are placed on separate sites of the network.
I'm building the frontend with Webpack. It turns out that for each site in the network you have to drag almost the same node_modules, you have to rebuild the same changes on each separate subsite, etc. with all the consequences.
I want to optimize my work. It looks like the creation of something like a static server on a separate subdomain, on which webpack at the config level resolves the builds. And sites from the network will simply connect styles and scripts from this server. But I'm not very friendly with Nginx.
Or maybe there is another solution?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question