Sapper Start screenshot

Sapper Start

Author Avatar Theme by Mattpilott
Updated: 10 Jun 2021
24 Stars

An opinionated sapper template

Categories

Overview

If you’re diving into Sapper projects and looking for a way to streamline your setup, this GitHub repository might just be the solution you need. The repository is designed to automate common tasks that developers typically perform on every Sapper project, ultimately saving valuable time. Not only does it simplify the initial setup, but it also offers a more robust starting point compared to the official Sapper template.

What makes this repository stand out is its variety of enhancements and features that aim to improve both functionality and usability for developers. It’s particularly useful for those who frequently create Sapper projects and are eager to hit the ground running with a solid configuration right out of the box.

Features

  • Out-of-the-Box SCSS Support: Easily integrate styles using SCSS without any additional configuration.

  • CSS Reset Based on Normalize: Ensure consistent styling across different browsers with an automatic CSS reset included.

  • Optimized Rollup Configuration: Increases server reliability by setting numworker: 1 in rollup.config, preventing crashes on single-core processors.

  • Suggested Folder Structure: A predefined layout for library and component directories helps keep your project organized from the start.

  • Optional Utility Package: Includes a utility package that is tree-shaken, so it only imports what you need, keeping your project lightweight.

  • PWA Support by Default: Quickly enable progressive web app features with built-in support, enhancing user experience.

  • Robust URL Handling: Automatically redirects trailing slash URLs to their non-trailing counterparts, streamlining navigation.

  • Improved Import Paths: Facilitates easier imports with a bypass for relative paths, simplifying code management.

This repository offers developers a tailored starting point that can make the often repetitive task of setting up Sapper projects more efficient and enjoyable.