Whether remote debugging is enabled. Toggled by the remote user setting or the
NEEDLE_REMOTE env var (the env var wins so you can flip it without editing the
config: NEEDLE_REMOTE=1 npm run dev, or NEEDLE_REMOTE=false to force off).
Load the codegen meta file.
Needle Engine AI skill installer.
Injects needle asap script into the index.html for when the main needle engine bundle is still being downloaded.
Create a buildinfo file in the build directory.
Runs the needle build pipeline as part of the vite build process.
Copy files on build from assets to dist.
Ensure the repo workspace or .vscode settings include Needle Engine custom HTML data if they exist. Copies custom-elements.json to the project and merges with existing user content.
custom-elements.json to project root./custom-elements.json to .code-workspace settings.html.customData./custom-elements.json to .vscode/settings.json html.customDataExperimental, allow dropping files from Unity into the running scene.
This plugin is used to apply the license to the needle engine.
write logs to local file
Plugins include hot reload support, meta tags, defines, build pipeline, PWA, and more.
How to add PWA support to your vite project:
npm install vite-plugin-pwa --save-dev.webmanifest file to your web project and edit the PWA manifest settings there.Provides reasonable defaults for a PWA manifest and workbox settings.
Remote debugging plugin.
Can open the network server in the browser.
Modify the glb load path in codegen files. This is necessary if the assets directory is not the default (changed by the user in needle.config.json).
Scans local GLB/glTF files to determine which engine components are actually used,
then rewrites the engine's codegen/register_types.ts so that unused components
are registered lazily via TypeStore.addLazy() instead of eagerly imported.
get the needle.config.json
Returns true when the Needle project is configured to serve gzip-compressed assets.
Reads the gzip field from the config object.
"assets" -> the directory name inside the output directory to put e.g. glb files into