Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/florianrappl/parcel-plugin-browserconfig

A simple plugin for Parcel to traverse a browserconfig.xml file. :package:
https://github.com/florianrappl/parcel-plugin-browserconfig

browserconfig parcel parcel-bundler parcel-plugin

Last synced: 10 days ago
JSON representation

A simple plugin for Parcel to traverse a browserconfig.xml file. :package:

Awesome Lists containing this project

README

        

# parcel-plugin-browserconfig

[![Build Status](https://florianrappl.visualstudio.com/parcel-plugin-browserconfig/_apis/build/status/FlorianRappl.parcel-plugin-browserconfig?branchName=master)](https://florianrappl.visualstudio.com/parcel-plugin-browserconfig/_build/latest?definitionId=11&branchName=master)
[![npm](https://img.shields.io/npm/v/parcel-plugin-browserconfig.svg)](https://www.npmjs.com/package/parcel-plugin-browserconfig)
[![GitHub tag](https://img.shields.io/github/tag/FlorianRappl/parcel-plugin-browserconfig.svg)](https://github.com/FlorianRappl/parcel-plugin-browserconfig/releases)
[![GitHub issues](https://img.shields.io/github/issues/FlorianRappl/parcel-plugin-browserconfig.svg)](https://github.com/FlorianRappl/parcel-plugin-browserconfig/issues)

A simple plugin for Parcel to traverse a browserconfig.xml file.

## Usage

Just install the plugin. Make sure that your HTML file references the browserconfig.xml, e.g.,

```html

```

The file will be minifed and all sources (attribute `src`) will be correctly marked as dependencies.

## Comparison to Static Copy

As an alternative to this plugin you can also use, e.g., `parcel-plugin-robot`. This plugin copies all files from a subfolder `static`. Thus you could just have a `browserconfig.xml` in that folder with all referred files also being in that folder. In many cases that may actually be sufficient.

This plugin also minifies the XML file and takes care of, e.g., image optimizations etc. for found images.

## Changelog

This project adheres to [semantic versioning](https://semver.org).

You can find the changelog in the [CHANGELOG.md](CHANGELOG.md) file.

## License

This plugin is released using the MIT license. For more information see the [LICENSE file](LICENSE).