Coder Social home page Coder Social logo

florianrappl / parcel-plugin-browserconfig Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 1.63 MB

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

Home Page: https://piral.io

License: MIT License

JavaScript 100.00%
parcel parcel-bundler parcel-plugin browserconfig

parcel-plugin-browserconfig's Introduction

parcel-plugin-browserconfig

Build Status npm GitHub tag GitHub 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.,

<meta name="msapplication-config" content="browserconfig.xml" />

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.

You can find the changelog in the CHANGELOG.md file.

License

This plugin is released using the MIT license. For more information see the LICENSE file.

parcel-plugin-browserconfig's People

Contributors

dependabot[bot] avatar florianrappl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

parcel-plugin-browserconfig's Issues

parcel-plugin-webmanifest

Thanks for creating this plugin!

Do you know of a plugin that would do the same thing with favicons in a site.manifest file?
<link rel="manifest" href="site.webmanifest">

"icons": [
    {
        "src": "images/favicons/android-chrome-192x192.png",
        "sizes": "192x192",
        "type": "image/png"
    }
]

There's an outstanding issue where the file gets copied to the wrong place:
parcel-bundler/parcel#3588

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.