Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Nov 2, 2024
1 parent 8e3d858 commit 1f0ad9e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Iconduit browser config loader
# Iconduit browser configuration loader

_A Webpack loader for `browserconfig.xml` files_

Expand All @@ -18,6 +18,25 @@ _A Webpack loader for `browserconfig.xml` files_
[badge-npm-version-link]:
https://npmjs.com/package/@iconduit/browserconfig-loader

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.

[browser configuration]: https://msdn.microsoft.com/library/dn320426(v%3Dvs.85)

It supports:

- Resolving [tile images]
- Resolving [badge polling URI assets]
- Resolving [notification polling URI assets]

[tile images]:
https://msdn.microsoft.com/library/dn320426(v%3Dvs.85)#specifying-tile-images-and-assets
[badge polling uri assets]:
https://msdn.microsoft.com/library/dn320426(v%3Dvs.85)#defining-badge-polling
[notification polling uri assets]:
https://msdn.microsoft.com/library/dn320426(v%3Dvs.85)#defining-notification-polling

## Usage

```js
Expand All @@ -27,7 +46,7 @@ export default {
module: {
rules: [
{
test: /\.(png|jpg|gif)$/i,
test: /\.(png|jpg|gif|xml)$/i,
type: "asset/resource",
},
{
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { resolve } from "path";
import { callbackify } from "util";
import type { LoaderDefinitionFunction } from "webpack";

// Schema: https://msdn.microsoft.com//library/dn320426(v=vs.85)

const browserConfigLoader: LoaderDefinitionFunction = function (source) {
const XMLOptions = {
attributeNamePrefix: "@_",
Expand Down

0 comments on commit 1f0ad9e

Please sign in to comment.