D
D
Dmitry Tsirulnikov2016-12-06 11:29:25
webpack
Dmitry Tsirulnikov, 2016-12-06 11:29:25

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

2 answer(s)
D
Dmitry Tsirulnikov, 2016-12-06
@LegGnom

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')

A
Artem Kayun, 2016-12-06
@Kayun

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 question

Ask a Question

731 491 924 answers to any question