S
S
Spaceoddity2019-09-21 11:14:19
webpack
Spaceoddity, 2019-09-21 11:14:19

How to configure webpack-dev to generate all project pages?

There are several project pages (html files) in the src folder (this is "contentBase" for dev server). But when the server starts, css-ki are integrated only in index.html, styles are not connected to other pages. Can this be configured somehow?
Or do I need to drop all html-ki into some dist and manually connect bundles to them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Spaceoddity, 2019-09-21
@Spaceoddity

It seems I realized that the snag was in HtmlWebpackPlugin. But now you have to prescribe all the templates used in the options, but is it possible to automate this somehow? So that it simply takes all the files from the folder and outputs them (with the same default names, for example).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question