D
D
Denis Bukreev2018-04-27 09:26:21
webpack
Denis Bukreev, 2018-04-27 09:26:21

Is it possible to configure webpack to embed both CSS and JS in HTML?

There are very few styles and scripts (the project consists of several banners) and it makes no sense to connect them separately.
Now I have JS embeds when the CSS page is loaded, and it itself is connected as a separate file, as a result, the content is loaded first, and then styles are thrown at it.
You can, of course, initially raise the parent to opacity: 0, and change it to 1 when the page loads, but I was interested in embedding the code directly into HTML using webpack.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2018-04-27
@ilyapashkov02

Connect WebpackHtmlPlugin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question