AccordBox / python-webpack-boilerplate

Django Webpack boilerplate & Flask Webpack boilerplate

Home Page:https://python-webpack-boilerplate.rtfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jump start frontend project bundled by Webpack

Build Status PyPI version Documentation

Difference between django-webpack-loader

When using django-webpack-loader, you need to create Webpack project on your own, which is not easy for many newbie Django developers.

python-webpack-boilerplate can let you play with modern frontend tech in Django, even you have no idea how to config Webpack.

Features

  • Supports Django and Flask (will support more framework in the future)
  • Automatic multiple entry points
  • Automatic code splitting
  • Hot Module Replacement (HMR) (auto reload web page if you edit JS or SCSS)
  • Easy to config and customize
  • ES6 Support via babel (v7)
  • JavaScript Linting via eslint
  • SCSS Support via sass-loader
  • Autoprefixing of browserspecific CSS rules via postcss and postcss-preset-env
  • Style Linting via stylelint

If you want to import lightweight modern frontend solution to your web app, or you do not like heavy framework such as React, Vue.

Please check my book The Definitive Guide to Hotwire and Django


Documentation

  1. Setup With Django
  2. Setup With Flask
  3. Frontend Workflow

Raising funds

If you like this project, please consider supporting my work. Open Collective



Special Thanks

About

Django Webpack boilerplate & Flask Webpack boilerplate

https://python-webpack-boilerplate.rtfd.io

License:MIT License


Languages

Language:Python 72.3%Language:JavaScript 25.6%Language:SCSS 1.2%Language:Makefile 0.8%