DEV Community


Webpack and puppeteer

vonheikemen profile image Heiker ・1 min read

What is the right way of using this two together?

I've been searching for a little while and so far the options that I've come across are

And this, but it doesn't use webpack.

Based on the poi plugin I made one for webpack (it's here), so far it works perfectly for my use case, but I still wonder if there is another way.


Editor guide
mattdevio profile image
Matt G

What exactly are you trying to do?

vonheikemen profile image
Heiker Author

I'm making tests using dom-testing-library so I just need to have a browser-like environment. The tests resemble this one.