Answer the question
In order to leave comments, you need to log in
How to unload html files in webpack?
There was a problem when building the server part of the application, when building the webpack, it tries to pull in the html files specified via require and import. Maybe someone knows how to reject the processing of html files in webpack?
Answer the question
In order to leave comments, you need to log in
Not that he html in base64 converts
module.exports = "data: text / html ; base64, PCFET0NUWVBFIGh0bWw + CjxodG1sPgogICAgPGhlYWQ + CiAgICAgICAgPG1ldGEgY2hhcnNldD0idXRmLTgiLz4KICAgIDwvaGVhZD4KICAgIDxib2R5PgogICAgICAgIHt7IHRlbXBsYXRlIH19CiAgICAgICAgPHNjcmlwdCBzcmM9Ii9zdGF0aWMvYnVuZGxlLmpzIj48L3NjcmlwdD4KICAgIDwvYm9keT4KPC9odG1sPg ==";
but it is necessary to leave require('index.html')
Perhaps this will
work https://webpack.github.io/docs/configuration.html#...
jlongster.com/Backend-Apps-with-Webpack--Part-I
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question