Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question