Skip to content

sidoh/webpack_with_platformio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published