npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dextuploadx5-vue-vite

v0.0.1

Published

Vite helper for dextuploadx5-vue (copies DX5 static resources)

Readme

DEXTUploadX5 Vue Vite Helper

Vite helper package for dextuploadx5-vue.

dextuploadx5-vue requires the DX5 static files to be available at the runtime productPath.

This package automates that setup in Vite projects. During development or production builds, it copies the DX5 files from dextuploadx5-vue/dist/dx5 to the Vite public directory or another target directory. During development, it also serves copied DX5 files from the configured DX5 mount path.

The helper always excludes dextuploadx5-configuration.js from the copied files.

Features

  • Exposes withDEXTUploadX5() for Vite projects
  • Copies DX5 static files automatically during vite and vite build
  • Serves copied DX5 static files during vite development
  • Uses the Vite publicDir by default
  • Supports custom target directories
  • Excludes dextuploadx5-configuration.js from the copied result

Requirements

  • Vite 5 or later
  • [email protected] or later
  • DEXTUploadX5 4.5.0.0(beta) or later through dextuploadx5-vue

Installation

npm install dextuploadx5-vue
npm install -D dextuploadx5-vue-vite vite

Install dextuploadx5-vue-vite as a devDependency because it is used in the Vite build configuration, not in browser runtime code.

Quick Start

import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";
import { withDEXTUploadX5 } from "dextuploadx5-vue-vite";

export default defineConfig({
    plugins: [
        vue(),
        ...withDEXTUploadX5()
    ]
});

With this configuration, DX5 files are copied to public/dx5 by default, so dextuploadx5-vue can load them with productPath: "/dx5/".

API

withDEXTUploadX5(options?)

Returns the Vite plugins required to copy and serve DX5 files for both development and production build.

plugins: [
    vue(),
    ...withDEXTUploadX5(options)
]

dextuploadx5VueVite(options?)

Returns the development-only Vite plugin. It copies DX5 files and serves requests under /<dx5DirName>/*.

dextuploadx5VueViteBuild(options?)

Returns the build-only Vite plugin. It copies DX5 files before production build output is generated.

Options

from?: string

Source DX5 directory.

  • Default: node_modules/dextuploadx5-vue/dist/dx5

publicDir?: string

Public directory root to copy into.

  • Default: current Vite publicDir

When set, the helper copies files to publicDir/<dx5DirName>.

to?: string

Exact target directory path, resolved from the Vite project root.

When set, this value is used directly and publicDir/dx5DirName are ignored.

dx5DirName?: string

Subdirectory name used under publicDir and as the development server mount path.

  • Default: "dx5"
  • With the default value, development requests to /dx5/* are served from the copied directory

verbose?: boolean

Controls copy logging.

  • Default: true

Typical Usage

Copy into the default Vite public directory

plugins: [
    vue(),
    ...withDEXTUploadX5()
]

This copies DX5 files into the active Vite publicDir under dx5.

Copy into public/custom-dx5

plugins: [
    vue(),
    ...withDEXTUploadX5({
        dx5DirName: "custom-dx5"
    })
]

With this option, configure dextuploadx5-vue with productPath: "/custom-dx5/".

Copy into a specific directory

plugins: [
    vue(),
    ...withDEXTUploadX5({
        to: "../shared-static/dx5"
    })
]

The to path is resolved from the Vite project root. Use this when your project serves static files from a directory that is not the active Vite publicDir.

Notes

  • This package is a build-time helper. It does not replace dextuploadx5-vue.
  • DX5 files are resolved from the installed dextuploadx5-vue package first.
  • If dextuploadx5-vue cannot be resolved automatically, the helper falls back to process.cwd()/node_modules/dextuploadx5-vue/dist/dx5.
  • dextuploadx5-configuration.js is never copied and is removed from the target path if it already exists.
  • The purpose of this package is to remove the need to manage DX5 static file copying manually in Vite projects.
  • DEXTUploadX5 itself is not distributed through npm, so its required version is documented here instead of package.json.

Compatibility

| dextuploadx5-vue-vite | Minimum dextuploadx5-vue | Minimum DEXTUploadX5 version | | --- | --- | --- | | 0.0.1 | 0.0.1 | 4.5.0.0(beta) |

History

0.0.1

  • Initial package release

License

This package is free to use, including commercial use. Modification for internal use is allowed. Redistribution of modified versions is prohibited. DEXTUploadX5 itself is a commercial product and is not free to use under the same terms as DEXTUploadX5 Vue Vite Helper.

See the LICENSE file for full terms.