B
B
bio2016-07-09 11:13:27
PHP
bio, 2016-07-09 11:13:27

How do you include static generated with webpack?

Good afternoon.
To prevent caching in the webpack settings, I use [hash], i.e. changing a file always creates a new one with a new hash.
But how do you connect them now?
I found two ways:
1 - generating html, and connecting it.
2 - json generation with file data.
Both are not very convenient, maybe there are some other options?
server in php.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qtuz, 2016-10-31
@qtuz

There are no other options. The way to get the data after the assembly, save it in JSON, and then process it on the server, proved to be excellent. Use it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question