sidoh / webpack_with_platformio

Barebones skeleton demonstrating how to use Webpack in conjunction with PlatformIO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlatformIO Webpack Example

An example repo demonstrating how to use Webpack with PlatformIO targeting the ESP32 platform.

Anatomy Overview

General Layout

Compiled Web Assets

  • ./dist/web_assets.h is generated by Webpack. And needs to exist during compile.
  • Webpack is invoked during the PlatformIO build via ./build_web.py.
  • Each asset (Webpack "pack") is put in its on progmem byte array and backed by a const char* map.

Webdev Entrypoint

  • Web sources are in ./web.
  • Within that directory, you can run the build with npm run build or start a development server with npm run start.

Webserver Development

Example Projects

About

Barebones skeleton demonstrating how to use Webpack in conjunction with PlatformIO

License:MIT License


Languages

Language:C++ 45.3%Language:JavaScript 44.3%Language:Python 10.2%Language:CSS 0.3%