Skip to content

luckydonald-forks/vite-plugin-laravel-php-array-loader

 
 

Repository files navigation

vite-plugin-xml-loader

forthebadge forthebadge

Automatically transform all xml files to json buffer

Install

npm i vite-plugin-xml-loader --save

Usage

In your vite.config.js or vite.config.ts file, do

import { defineConfig } from 'vite'
...
import XMLLoader from 'vite-plugin-xml-loader' 

...
export default defineConfig({
  plugins: [
    ...
    XMLLoader(),
  ]
})

and the plugin should be ready to use.

Testing

This plugin is also testable and there's a test script ready. To test it yourself, you can clone this repository and do

npm test

License

MIT License

About

Lightweight Vite plugin that converts all XML to JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.3%
  • JavaScript 17.7%