{"repo":"django-webpack/django-webpack-loader","free":true,"listed":false,"github":"https://github.com/django-webpack/django-webpack-loader","clone":"git clone https://github.com/django-webpack/django-webpack-loader.git","description":"Transparently use webpack with django","language":"Python","stars":2540,"topics":["webpack","django","django-webpack-loader","assets","static","javascript","reactjs"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"django-webpack-loader Integrate Webpack bundles in Django templates by using a simple template tag: Behind the scenes, Django Webpack Loader consumes a stats file generated by webpack-bundle-tracker and lets you use the generated bundles in Django. A changelog is available. Compatibility Generally, Python, Django, and Node LTS releases will be supported until EOL. Check tests/tox.ini for details. Versions not listed in tests/tox.ini may still work, but maintainers will not test them, nor solve issues with them. Examples below are in Webpack 5. Install Configuration For kick-starting a full example project with opinionated development and production settings, you can check the django-react-boilerplate . For a more flexible configuration, keep reading. Configuring webpack-bundle-tracker Before configuring django-webpack-loader , let's first configure what's necessary on webpack-bundle-tracker side. Update your Webpack configuration file (it's usually on webpack.config.js in the project root). Make sure your file looks like this (adapt to your needs): The configuration above expects the index.js (the app entrypoint file) to live inside the /assets/js/ directory (this guide going forward will assume that all frontend related files are placed inside the /assets/ directory, with the different kinds of files arranged within its subdirectories). The generated compiled files will be placed inside the /assets/webpack bundles/ directory and the stats file with the information regarding ","default_branch":null,"files":null,"tree":[],"storefront":"/r/django-webpack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/django-webpack/django-webpack-loader/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}