A ready-to-rock Preact starter project powered by Webpack for building modern web applications.
Preact Boilerplate is a starter project for building web applications with Preact, a fast 3kB alternative to React. It provides a pre-configured development environment powered by Webpack, including tools for testing, CSS modules, routing, and production builds. It solves the problem of setting up a modern frontend toolchain from scratch, allowing developers to immediately start coding.
Frontend developers and teams looking to quickly bootstrap new Preact-based single-page applications (SPAs) with a proven, minimal configuration. It's ideal for those who prefer a lightweight setup over heavier frameworks like Create React App.
Developers choose Preact Boilerplate for its simplicity, performance, and out-of-the-box tooling. It offers a streamlined alternative to complex setups, with built-in testing, CSS modules, and React compatibility—all while keeping bundle sizes small and development workflows efficient.
:guitar: Ready-to-rock Preact starter project, powered by Webpack.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Clone the repo, run npm install, and start developing with hot module replacement—ideal for quickly prototyping Preact applications without initial setup headaches.
Includes CSS Modules for scoped styling, Preact Router for basic routing, and a full testing suite with Mocha and Karma, reducing the need for additional configuration.
Via preact-compat, it allows the use of third-party React components, and the bundle only includes this compatibility layer if actually used, keeping bundles lean.
The npm run build command generates optimized, minified, and gzipped assets ready for deployment to CDNs or static hosts like Surge.sh or Netlify.
The README explicitly states that Preact CLI is now recommended for new projects, as it offers automatic code-splitting and requires no configuration, making this boilerplate somewhat obsolete.
Relies on PhantomJS for browser testing, which is no longer maintained and lacks support for modern JavaScript features, potentially leading to compatibility issues.
While it provides a pre-configured Webpack setup, any deviations or updates require manual tweaking of build files, which can be cumbersome compared to zero-config tools.