A plugin integrating the Parcel build tool and dev server with the Eleventy static site generator.
Overview
The @kitschpatrol/eleventy-plugin-parcel is a game changer for developers using the Eleventy static site generator who want to enhance their build process with powerful features offered by the Parcel build tool. This plugin seamlessly integrates Parcel into your Eleventy workflow, automating the post-processing of your site every time a build is completed. Whether you’re optimizing scripts or generating resources, this plugin ensures your site benefits from improved efficiency and performance.
What’s particularly appealing is how the plugin operates within Eleventy’s ecosystem. You won’t need to fuss with modifying your NPM scripts, as all necessary functionalities are encapsulated within the plugin itself. The ease of use combined with the option to leverage the Parcel Development Server during development makes this plugin a must-have for Eleventy users.
Features
- Automatic Invocation: Parcel is triggered automatically after each Eleventy build, ensuring your resources are consistently optimized without any additional steps required.
- Dev Server Integration: Optionally use the Parcel Development Server as middleware for real-time previews and automatic reloading when changes are detected.
- No NPM Modifications Needed: The plugin integrates fully into Eleventy’s plugin system, negating the need for any alterations to your existing NPM scripts.
- Compatibility: Designed specifically for Eleventy version 2.x and Parcel version 2.x, making it a reliable choice for modern web projects.
- Dynamic Configuration: The plugin intelligently adjusts its settings based on the build context (development or production), simplifying the configuration process.
- Output Directory Management: Automatically aligns Parcel’s output directory with Eleventy’s settings, streamlining your project structure.
- Customizable Options: Additional configuration options can be set directly in the Eleventy configuration for tailored performance to suit your project’s needs.