[Fixed]-Webpack bundle does not show css

1👍

I was importing (equivalent of require under ES6) a plugin which apparently caused issues. After leaving that plugin out the django-webloader-loader worked as expected. For more detail, see:
https://github.com/owais/django-webpack-loader/issues/51

0👍

Did you require the css files?

Using the css and style loaders you embed the css files in the Webpack bundle, requiring them as you would do with any other module.

If you look in the Webpack documentation I linked you’ll see:

// in your modules just require the stylesheet 
// This has the side effect that a <style>-tag is added to the DOM.
require("./stylesheet.css");// This has the side effect that a <style>-tag is added to the DOM.

Leave a comment