J
J
Javarast Skriptovich2019-03-10 06:18:50
JavaScript
Javarast Skriptovich, 2019-03-10 06:18:50

How to easily concatenate files in Webpack?

I started to study webpack, to be honest, some kind of horror, both itself and what it produces .. What can not be said about its perspective ..
In general, there are js files, I need to merge them (they will not conflict) by deleting comments and minifying, Webpack can do this?
After a cursory review, I was horrified by his constructions that he generates, in principle, I don’t need to encapsulate files, as I already said, they don’t conflict

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2019-03-10
@Robur

It's not that it "can" it's its main use case. Take the simplest example from the documentation or Google and it will be exactly that. If you don't have modules, but just a bunch of files, then some plugin will do, you can start with webpack-concat-plugin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question