'Output webpack bundle with css only

I have multiple webpacks bundles, which work properly.

One bundle is built from css files only, and I managed to output a corresponding foo.css.

But webpack also outputs a foo.js file, which contains ATTENTION: The "eval" devtool has been used..., etc. It contains loads of stuff like eval("__webpack_some_log_string"). I don't need that file - that bundle is for css only.

How do I configure a bundle to output a css file only?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source