V
V
Vitaly Stolyarov2018-11-30 01:43:39
webpack
Vitaly Stolyarov, 2018-11-30 01:43:39

How to inject multiple bundles into different locations?

In an HTML plugin, the inject property requires you to specify only one of the two assignments - body and head.
How to insert different entries into the body and into the head within the same config?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Stolyarov, 2018-12-11
@Ni55aN

I inserted all the bundles into the head, for delayed execution of all scripts, except for one (splash.js), I assigned defer via script-ext-html-webpack-plugin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question