@iconduit/browserconfig-loader
v0.2.0
Published
A Webpack loader for browserconfig.xml files
Downloads
182
Maintainers
Readme
Browser configuration loader
A Webpack loader for browserconfig.xml
files
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:
- Resolving tile images
- Resolving badge polling URI assets
- Resolving notification polling URI assets
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",
},
],
},
};