@iconduit/browserconfig-loader
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Browser configuration loader

A Webpack loader for browserconfig.xml files

Current NPM version Build status Test coverage

This loader processes browser configuration files, adding any images or polling URI assets to the bundle and resolving their URLs in the output browser configuration file.

It supports:

Usage

// webpack.config.js
export default {
  // ...
  module: {
    rules: [
      {
        test: /\.(png|jpg|gif|xml)$/i,
        type: "asset/resource",
      },
      {
        test: /\/browserconfig\.xml$/i,
        type: "asset/resource",
        use: "@iconduit/browserconfig-loader",
      },
    ],
  },
};

Package Sidebar

Install

npm i @iconduit/browserconfig-loader

Weekly Downloads

4

Version

0.2.0

License

MIT

Unpacked Size

10.1 kB

Total Files

9

Last publish

Collaborators

  • iconduit-admin