Skip to content
Barebones skeleton demonstrating how to use Webpack in conjunction with PlatformIO
C++ JavaScript Python CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include Inittial commit Nov 14, 2019
lib Inittial commit Nov 14, 2019
src
test Inittial commit Nov 14, 2019
web Inittial commit Nov 14, 2019
.build_web.py Inittial commit Nov 14, 2019
.gitignore Inittial commit Nov 14, 2019
.travis.yml Inittial commit Nov 14, 2019
LICENSE Inittial commit Nov 14, 2019
README.md Inittial commit Nov 14, 2019
platformio.ini Inittial commit Nov 14, 2019

README.md

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

You can’t perform that action at this time.