Skip to content

emptykid/vite-uxp-starter

Repository files navigation

vite-uxp-starter

This project is a starter sample to build Adobe UXP plugin using Vite.

这是一个使用Vite来构建Adobe UXP的示例工程。

Usage

Just checkout this project and run

下载此项目,然后执行

yarn install

yarn watch
# or 
yarn build

Issue

As Native ESM is not supported in UXP runtime, which means the default output of Vite is not work in UXP.

<script type="module" crossorigin src="./assets/index.xxxx.js"></script>

I added a plugin plugin-legacy to build type="text/javascript".

Sadly, there seems to bugs in the plugin, which makes vite build --watch not work as excepted. See this issue, So I added a isolate node-watch to watch files.

If you would like to use Webpack , see this project webpack-uxp-start

License

You are free to check these codes and modify anything as you need.

About

build adobe uxp plugin with vite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published