webpack-xml-loader
v0.0.2
Published
A webpack module to load XML files.
Downloads
768
Readme
Webpack XML loader
A Webpack plugin for loading XML files.
Installation
Install via npm:
npm install --save-dev xml-loader
Usage
Add the loader to your webpack config:
(You may also pass any of the xml2js parser options in an object.)
module : {
loaders : [
{
test: /\.xml$/,
use: {
loader: 'xml-loader',
options: {
explicitArray: false,
},
},
},
],
},
Credits
- Original idea by xml-loader
- Inspired by webpack's dsv-loader
- XML parsing done with node-xml2js