tspng / python-webpack-boilerplate

Webpack boilerplate for Django & Flask.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Build Status PyPI version Documentation

Goal

This project is to provide Webpack solution to your Django & Flask projects.

You can check this blog to learn more why it is created.

What is included.

  1. A Webpack project template which has good structure, easy to use and customize. User can create frontend project using cookiecutter, and use it even they have no idea how to config Webpack.
  2. Template tags which can help load Webpack bundle file in the templates, it is smart to auto load dependency files.

Features

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

Optional support

Need install extra packages

  • React
  • Vue

Documentation

  1. Setup With Django
  2. Setup With Flask
  3. Frontend Workflow
  4. Import React
  5. Import Vue

Special Thanks

About

Webpack boilerplate for Django & Flask.

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


Languages

Language:Python 71.8%Language:JavaScript 25.6%Language:Makefile 1.7%Language:SCSS 0.9%