I am using cookiecutter-django with webpack and it's working nicely. I only have to keep running webpack on watch mode and everything else just works. Can I propose the change? It uses npm scripts instead of grunt.
@geekodour, for historical reference on webpack support, see #774
Inclusion of a light Webpack setup would be nice, but it would have to be easily maintainable for us.
I'll just post my folder structure webpack included here, not sure if it's good bad. it's probably bad. (did not show .babelrc)
.
โโโ contrib
โโโ __init__.py
โโโ media
โโโ node_modules <--
โโโ package.json <--
โโโ postcss.config.js <--
โโโ __pycache__
โโโ static
โโโ taskapp
โโโ templates
โโโ users
โโโ videos (app)
โโโ vlog (app)
โโโ webpack.config.js <--
inside static
.
โโโ fonts
โโโ images
โย ย โโโ favicon.ico
โโโ js
โย ย โโโ project.js
โโโ public
โย ย โโโ Main.css
โย ย โโโ Main.js
โโโ sass
โย ย โโโ project.sass
โโโ vendor
โโโ responsive-nav.css
โโโ responsive-nav.min.js
the project.js in /js @imports project.sass from /sass and I am using webpack extractTextPlugin to put the Main.css and Main.js into /public
@geekodour
Is webpack worth using in a multiple page application?
I have never used webpack in practice but I read articles mainly about how cool it is :smile: and also how to use it to optimize the delivery of static content in a single page application. I understood the benefits there but what about a traditional Django app?
Well I have problems currently including Vue.js plugins without Webpack... It would be awesome if I could have just spun up Webpack for this.
Just throwing this out there: I use https://github.com/owais/django-webpack-loader for managing webpack inside of Django, which is a really solid solution overall.
I have built a very simple integration with Webpack and it works in a very basic setup. It's my first time contributing, forgive me for the incomplete project. https://github.com/kiran-capoor94/cookiecutter-django-webpack
Most helpful comment
I have built a very simple integration with Webpack and it works in a very basic setup. It's my first time contributing, forgive me for the incomplete project. https://github.com/kiran-capoor94/cookiecutter-django-webpack