@open-xchange/vite-plugin-ox-bundle
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Vite Plugin OX Bundle

A vite plugin to create a custom bundle file to reduce js requests for App Suite UI

Install

pnpm i "@open-xchange/vite-plugin-ox-bundle"

How to use

// in the vite.config.js
import vitePluginOxBundle from '@open-xchange/vite-plugin-ox-bundle'

return {
  plugins: [vitePluginOxBundle()]
}

You need to manual define a bundle file:

// bundles.json
[
  {
    name: 'mybundle.js',
    files: [
      ....
    ]
  }
]

Options

You can provide the following options to the plugin:

  • src <string> Path to predefined bundles file. Default: ./bundles.json
  • ignore <string[]> Paths to be ignored. Default: []

Readme

Keywords

none

Package Sidebar

Install

npm i @open-xchange/vite-plugin-ox-bundle

Weekly Downloads

628

Version

0.1.3

License

MIT

Unpacked Size

11.5 kB

Total Files

6

Last publish

Collaborators

  • tran-dong.tran
  • bjoern.koester
  • hydrair
  • moritz.bach
  • andree
  • anne.matthes
  • johnyb
  • davidbauer
  • solygen
  • daniel.rentz
  • alexquast
  • d.haus
  • maik.schaefer
  • jjacobsohn