M
M
MasterCopipaster2021-03-28 19:31:12
webpack
MasterCopipaster, 2021-03-28 19:31:12

How to build my webpack project?

Help a fool build a project with Webpack, honestly guys don’t give me links, I’m tired of reading a bunch of useless articles on Habré about how cool Webpack is and what it can do 100,500 perversions that I personally don’t care about at all, and while you’re reading all about it, you’re just you start to drown in what those "gurus" write.

I have a small website with this structure

├── css
│   ├── bootstrap.min.css
│   ├── elegant-icons.css
│   ├── font-awesome.min.css
│   ├── magnific-popup.css
│   ├── owl.carousel.min.css
│   ├── slicknav.min.css
│   └── style.css
├── fonts
│   ├── ElegantIcons.eot
│   ├── ElegantIcons.svg
│   ├── ElegantIcons.ttf
│   ├── ElegantIcons.woff
│   ├── FontAwesome.otf
│   ├── fontawesome-webfont.eot
│   ├── fontawesome-webfont.svg
│   ├── fontawesome-webfont.ttf
│   ├── fontawesome-webfont.woff
│   └── fontawesome-webfont.woff2
└── js
    ├── bootstrap.min.js
    ├── jquery-3.3.1.min.js
    ├── jquery.countdown.min.js
    ├── jquery.magnific-popup.min.js
    ├── jquery.slicknav.js
    ├── main.js
    └── owl.carousel.min.js

I want to get bundl.js and bundle.css from all this heap in order to give the user 1 file as compressed as possible.
It will be great if you can come up with something similar with fonts, after reading 11 articles, it seems like there is something like that, but it would be a plus, but it doesn’t matter to me at all.

Explain to me how to collect it? it's just that jquery-3.3.1.min.js should come before jquery.slicknav.js and main.js should come last, and at this point I personally can't figure out how to do it.

Help a non-master collect two bundles.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Leonid Yakovlev, 2021-03-28
@deleo547

One of the webpack starter templates , have fun

guys honestly don’t give me links, I’m tired of reading a bunch of useless articles on Habré about how cool Webpack is and what it can do 100500 perversions that I personally don’t care at all

If you don't want to read, go to a freelance exchange, complete a task and pay the contractor

A
Alexey Yarkov, 2021-03-28
@yarkov

Why read articles if you need to read documentation?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question