/example-webpack-app

A template for building Cloudflare apps with the latest Javascript and CSS features.

Primary LanguageJavaScriptMIT LicenseMIT

Example Webpack App

This is our example app with the latest JavaScript and CSS features.

Download this app and replace our code any time you want to build an Cloudflare app.

Looking for a simpler setup? Check out our vanilla example app!

Setup

Fork and clone the repo or download the latest release.

Install the dependencies with npm install

Usage

  • npm start Watches for file changes and compile them.
  • npm run build Compiles your JavaScript and CSS once for release.
  • npm run lint Checks JavaScript formatting and attempts to fix any errors.

Details

source/app.js

This is where the magic happens. Your app starts here.

source/app.css

Styles for your app.

install.json

This is where all the installer options are added for the app.

Syntax can be tricky, so be sure to double check it.

media/**

An directory for icons, tile images, and screenshots.

Download media-templates.sketch

Troubleshooting

Install [[YOUR APP NAME]] with Cloudflare